@Configuration
@ComponentScan(basePackages="org.apache.logging.log4j.catalog")
public class WebMvcAppContext
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
implements org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
WebMvcAppContext() |
Modifier and Type | Method and Description |
---|---|
void |
addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) |
void |
addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry) |
CatalogDao |
catalogDao() |
void |
configureDefaultServletHandling(org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer configurer) |
void |
configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters) |
org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator |
defaultAdvisorAutoProxyCreator() |
org.springframework.http.converter.json.MappingJackson2HttpMessageConverter |
jsonMessageConverter() |
LocalAuthorizationInterceptor |
localAuthorizationInterceptor() |
org.springframework.context.MessageSource |
messageSource() |
com.fasterxml.jackson.databind.ObjectMapper |
objectMapper() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addReturnValueHandlers, configureAsyncSupport, configureContentNegotiation, configureHandlerExceptionResolvers, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void configureDefaultServletHandling(org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer configurer)
configureDefaultServletHandling
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
configureDefaultServletHandling
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
addResourceHandlers
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addResourceHandlers
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
public void addViewControllers(org.springframework.web.servlet.config.annotation.ViewControllerRegistry registry)
addViewControllers
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addViewControllers
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
public void configureMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
configureMessageConverters
in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
configureMessageConverters
in class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
@Bean public org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator defaultAdvisorAutoProxyCreator()
@Bean public org.springframework.context.MessageSource messageSource()
@Bean public LocalAuthorizationInterceptor localAuthorizationInterceptor()
public com.fasterxml.jackson.databind.ObjectMapper objectMapper()
public org.springframework.http.converter.json.MappingJackson2HttpMessageConverter jsonMessageConverter()
@Bean public CatalogDao catalogDao()
Copyright © 2016-2018 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Apache Log4j Audit, Log4j, Log4j Audit, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.