@Configuration
@ConditionalOnProperty(value="cors.registry.enabled",
matchIfMissing=false)
public class CorsRegistryConfiguration
extends org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
| 构造器和说明 |
|---|
CorsRegistryConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2020 Nepxion. All rights reserved.