@Configuration
@ConditionalOnProperty(name="zuvboot.webcors.type",
havingValue="spring-adapter")
@Order(value=-2147483648)
public class WebSpringCorsAdapter
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
| 构造器和说明 |
|---|
WebSpringCorsAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry) |
addArgumentResolvers, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidatorpublic void addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry)
addCorsMappings 在接口中 org.springframework.web.servlet.config.annotation.WebMvcConfigureraddCorsMappings 在类中 org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapterCopyright (c) 2002-2020 Luther Inc.