public class CorsWebMvcConfigurer extends Object implements WebMvcConfigurerAdapter
| Constructor and Description |
|---|
CorsWebMvcConfigurer(CorsProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry)
允许跨域请求
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddArgumentResolvers, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidatorpublic CorsWebMvcConfigurer(CorsProperties properties)
public void addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry)
addCorsMappings in interface WebMvcConfigurerAdapteraddCorsMappings in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurerregistry - 跨域注册器Copyright © 2021–2023 EasyJ开源社区. All rights reserved.