Class WebMvcConfiguration
java.lang.Object
eu.rarogsoftware.rarog.platform.app.configuration.WebMvcConfiguration
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@EnableWebMvc
@Configuration
@EnableConfigurationProperties(org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties.class)
@PropertySource("classpath:application.yml") @PropertySource(value="config:base.properties",ignoreResourceNotFound=true) @PropertySource(value="config:database.properties",ignoreResourceNotFound=true)
public class WebMvcConfiguration
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWebMvcConfiguration
(org.springframework.beans.factory.ListableBeanFactory beanFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResourceHandlers
(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) void
configurePathMatch
(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer) io.swagger.v3.oas.models.OpenAPI
customOpenAPI
(OpenAPIConfigurer configurer) org.springframework.boot.autoconfigure.web.servlet.DispatcherServletPath
dispatcherServletPath
(org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties webMvcProperties) org.springframework.boot.web.servlet.ServletRegistrationBean<SmartSwitchingServlet>
dispatcherServletRegistration
(SmartSwitchingServlet dispatcherServlet, org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties webMvcProperties, org.springframework.beans.factory.ObjectProvider<jakarta.servlet.MultipartConfigElement> multipartConfig) void
extendMessageConverters
(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) (package private) DefaultI18NextService
org.springframework.web.servlet.LocaleResolver
org.springframework.context.MessageSource
messageSource
(DefaultI18NextService i18NextService) pluginTemplateResolver
(org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties properties, String prefix, int order) org.thymeleaf.spring6.SpringTemplateEngine
templateEngine
(org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties properties, org.springframework.beans.factory.ObjectProvider<org.thymeleaf.templateresolver.ITemplateResolver> templateResolvers, org.springframework.beans.factory.ObjectProvider<org.thymeleaf.dialect.IDialect> dialects) (package private) org.thymeleaf.spring6.view.ThymeleafViewResolver
thymeleafViewResolver
(org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties properties, org.thymeleaf.spring6.SpringTemplateEngine templateEngine) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configureViewResolvers, extendHandlerExceptionResolvers, getMessageCodesResolver, getValidator
-
Field Details
-
messagesParentDirectory
-
-
Constructor Details
-
WebMvcConfiguration
public WebMvcConfiguration(org.springframework.beans.factory.ListableBeanFactory beanFactory)
-
-
Method Details
-
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) - Specified by:
addResourceHandlers
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
configurePathMatch
public void configurePathMatch(org.springframework.web.servlet.config.annotation.PathMatchConfigurer configurer) - Specified by:
configurePathMatch
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
extendMessageConverters
public void extendMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) - Specified by:
extendMessageConverters
in interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
pluginMappingHandlerMapping
-
templateEngine
@Bean public org.thymeleaf.spring6.SpringTemplateEngine templateEngine(org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties properties, org.springframework.beans.factory.ObjectProvider<org.thymeleaf.templateresolver.ITemplateResolver> templateResolvers, org.springframework.beans.factory.ObjectProvider<org.thymeleaf.dialect.IDialect> dialects) -
thymeleafViewResolver
@Bean org.thymeleaf.spring6.view.ThymeleafViewResolver thymeleafViewResolver(org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties properties, org.thymeleaf.spring6.SpringTemplateEngine templateEngine) -
localeResolver
@Bean public org.springframework.web.servlet.LocaleResolver localeResolver() -
i18NextService
@Bean @AutoRegisterFeatureModule({I18NextTransformerDescriptor.class,I18NextResourceDescriptor.class}) DefaultI18NextService i18NextService() -
messageSource
@Bean public org.springframework.context.MessageSource messageSource(DefaultI18NextService i18NextService) -
pluginTemplateResolver
@Bean public OsgiPluginTemplateResolver pluginTemplateResolver(org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties properties, @Value("${spring.thymeleaf.osgi-template-resolver.prefix:classpath:/templates/}") String prefix, @Value("${spring.thymeleaf.osgi-template-resolver-order:10000}") int order) -
customOpenAPI
-
dispatcherServletRegistration
@Bean("dispatcherServletRegistration") public org.springframework.boot.web.servlet.ServletRegistrationBean<SmartSwitchingServlet> dispatcherServletRegistration(SmartSwitchingServlet dispatcherServlet, org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties webMvcProperties, org.springframework.beans.factory.ObjectProvider<jakarta.servlet.MultipartConfigElement> multipartConfig) -
dispatcherServletPath
@Bean public org.springframework.boot.autoconfigure.web.servlet.DispatcherServletPath dispatcherServletPath(org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties webMvcProperties)
-