程序包 config.spring
类 ApiConfig
java.lang.Object
config.spring.ApiConfig
- 所有已实现的接口:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
@EnableWebMvc
@ComponentScan(basePackages="com.publiccms.controller.api",
useDefaultFilters=false,
includeFilters=,
nameGenerator=FullBeanNameGenerator.class)
public class ApiConfig
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
ApiConfig ApiServlet配置类
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
addInterceptors
(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
json、Jsonp消息转换适配器,用于支持RequestBody、ResponseBody从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addFormatters, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
字段详细资料
-
siteInterceptor
-
-
构造器详细资料
-
ApiConfig
public ApiConfig()
-
-
方法详细资料
-
mappingJackson2HttpMessageConverter
@Bean public org.springframework.http.converter.json.MappingJackson2HttpMessageConverter mappingJackson2HttpMessageConverter()json、Jsonp消息转换适配器,用于支持RequestBody、ResponseBody- 返回:
- json、jsonp message converter , support for requestbody、responsebody
-
addInterceptors
public void addInterceptors(org.springframework.web.servlet.config.annotation.InterceptorRegistry registry) - 指定者:
addInterceptors
在接口中org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-