@Configuration @EnableWebMvc @ComponentScan(basePackages="com.publiccms.controller.api", useDefaultFilters=false, includeFilters=, nameGenerator=FullBeanNameGenerator.class) public class ApiConfig extends java.lang.Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
限定符和类型 | 字段和说明 |
---|---|
private SiteInterceptor |
siteInterceptor |
构造器和说明 |
---|
ApiConfig() |
限定符和类型 | 方法和说明 |
---|---|
void |
addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) |
org.springframework.http.converter.json.MappingJackson2HttpMessageConverter |
mappingJackson2HttpMessageConverter()
json、Jsonp消息转换适配器,用于支持RequestBody、ResponseBody
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addArgumentResolvers, addCorsMappings, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
private SiteInterceptor siteInterceptor
@Bean public org.springframework.http.converter.json.MappingJackson2HttpMessageConverter mappingJackson2HttpMessageConverter()
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry)
addInterceptors
在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer