@Configuration public static class AdminWebApplication.WebMvcConfiguration extends WebMvcConfigurerAdapter
ThymeleafViewResolver created by
AdminWebApplication.CustomThymeleafConfiguration and an
InternalResourceViewResolver to the list of view resolvers and
configures the paths for static resources. It also disables content
negotiation based on file extensions. Besides, it makes some
customizations to the ObjectMapper used for converting JSON.| Constructor and Description |
|---|
WebMvcConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
addResourceHandlers(ResourceHandlerRegistry registry) |
void |
configureContentNegotiation(ContentNegotiationConfigurer configurer) |
void |
configurePathMatch(PathMatchConfigurer configurer) |
void |
configureViewResolvers(ViewResolverRegistry registry) |
void |
extendMessageConverters(List<HttpMessageConverter<?>> converters) |
void |
setDevelopmentModeProperties(DevelopmentModeProperties developmentModeProperties)
Sets the development-mode properties used by this configuration.
|
void |
setThymeleafViewResolver(org.thymeleaf.spring4.view.ThymeleafViewResolver thymeleafViewResolver)
Sets the Thymeleaf view resolver to be used by this configuration and
thus Spring Web MVC.
|
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, extendHandlerExceptionResolvers, getMessageCodesResolver, getValidatorpublic void addResourceHandlers(ResourceHandlerRegistry registry)
addResourceHandlers in interface WebMvcConfigureraddResourceHandlers in class WebMvcConfigurerAdapterpublic void configureContentNegotiation(ContentNegotiationConfigurer configurer)
configureContentNegotiation in interface WebMvcConfigurerconfigureContentNegotiation in class WebMvcConfigurerAdapterpublic void configurePathMatch(PathMatchConfigurer configurer)
configurePathMatch in interface WebMvcConfigurerconfigurePathMatch in class WebMvcConfigurerAdapterpublic void configureViewResolvers(ViewResolverRegistry registry)
configureViewResolvers in interface WebMvcConfigurerconfigureViewResolvers in class WebMvcConfigurerAdapterpublic void extendMessageConverters(List<HttpMessageConverter<?>> converters)
extendMessageConverters in interface WebMvcConfigurerextendMessageConverters in class WebMvcConfigurerAdapter@Autowired public void setDevelopmentModeProperties(DevelopmentModeProperties developmentModeProperties)
developmentModeProperties - development-mode properties to be used by this
configuration.@Autowired public void setThymeleafViewResolver(org.thymeleaf.spring4.view.ThymeleafViewResolver thymeleafViewResolver)
thymeleafViewResolver - Thymeleaf view resolver to be used by this configuration.Copyright © 2011–2017 aquenos GmbH. All rights reserved.