@EnableConfigurationProperties(value={GlobalProperties.class,org.springframework.boot.autoconfigure.data.web.SpringDataWebProperties.class})
@Configuration
public class WebConfig
extends java.lang.Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
| 构造器和说明 |
|---|
WebConfig(GlobalProperties globalProperties,
org.springframework.boot.autoconfigure.data.web.SpringDataWebProperties springDataWebProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addArgumentResolvers(java.util.List<org.springframework.web.method.support.HandlerMethodArgumentResolver> resolvers) |
void |
addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry) |
void |
addFormatters(org.springframework.format.FormatterRegistry registry) |
void |
extendMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> converters) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, getMessageCodesResolver, getValidatorpublic WebConfig(GlobalProperties globalProperties, org.springframework.boot.autoconfigure.data.web.SpringDataWebProperties springDataWebProperties)
public void addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry)
addCorsMappings 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic void addFormatters(org.springframework.format.FormatterRegistry registry)
addFormatters 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic void extendMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
extendMessageConverters 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerpublic void addArgumentResolvers(java.util.List<org.springframework.web.method.support.HandlerMethodArgumentResolver> resolvers)
addArgumentResolvers 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigurer