@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 |
addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry) |
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, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidatorpublic void addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry)
addCorsMappings in interface org.springframework.web.servlet.config.annotation.WebMvcConfigureraddCorsMappings in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterpublic 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 © 2019 Europeana Foundation. All rights reserved.