@EnableWebMvc @ComponentScan @Configuration public class WebConfig extends WebMvcConfigurerAdapter
Constructor and Description |
---|
WebConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addViewControllers(ViewControllerRegistry registry) |
void |
configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) |
DispatcherServlet |
dispatcherServlet() |
InternalResourceViewResolver |
viewResolver() |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, configureAsyncSupport, configureContentNegotiation, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
public void addViewControllers(ViewControllerRegistry registry)
addViewControllers
in interface WebMvcConfigurer
addViewControllers
in class WebMvcConfigurerAdapter
@Bean public InternalResourceViewResolver viewResolver()
@Bean public DispatcherServlet dispatcherServlet()
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer)
configureDefaultServletHandling
in interface WebMvcConfigurer
configureDefaultServletHandling
in class WebMvcConfigurerAdapter