@Configuration
@EnableWebMvc
@ComponentScan(basePackageClasses={SearchController.class,ExceptionController.class})
@Import(value=SwaggerConfig.class)
@EnableAsync
public class WebMvcConfig
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
| Constructor and Description |
|---|
WebMvcConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer) |
void |
configureDefaultServletHandling(org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer configurer) |
org.springframework.web.servlet.ViewResolver |
contentViewResolver() |
org.springframework.oxm.jaxb.Jaxb2Marshaller |
jaxb2Marshaller() |
org.springframework.web.servlet.view.xml.MarshallingView |
marshallingView() |
XmlUtils |
xmlUtils() |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendMessageConverters, getMessageCodesResolver, getValidatorpublic void configureContentNegotiation(org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer configurer)
configureContentNegotiation in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerconfigureContentNegotiation in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter@Bean
public org.springframework.web.servlet.ViewResolver contentViewResolver()
throws Exception
Exception@Bean(name="api2_mvc_views_jaxbmarshaller") public org.springframework.oxm.jaxb.Jaxb2Marshaller jaxb2Marshaller()
@Bean public org.springframework.web.servlet.view.xml.MarshallingView marshallingView()
@Bean(name="api2_mvc_xmlUtils") public XmlUtils xmlUtils()
public void configureDefaultServletHandling(org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer configurer)
configureDefaultServletHandling in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerconfigureDefaultServletHandling in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterCopyright © 2017. All rights reserved.