Package icu.easyj.web.cors
Class CorsWebMvcConfigurer
java.lang.Object
icu.easyj.web.cors.CorsWebMvcConfigurer
- All Implemented Interfaces:
WebMvcConfigurerAdapter,org.springframework.web.servlet.config.annotation.WebMvcConfigurer
跨域请求过滤器
- Since:
- 0.6.5
- Author:
- wangliang181230
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry) 允许跨域请求Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface icu.easyj.web.spring.WebMvcConfigurerAdapter
addArgumentResolvers, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
CorsWebMvcConfigurer
-
-
Method Details
-
addCorsMappings
public void addCorsMappings(org.springframework.web.servlet.config.annotation.CorsRegistry registry) 允许跨域请求- Specified by:
addCorsMappingsin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer- Specified by:
addCorsMappingsin interfaceWebMvcConfigurerAdapter- Parameters:
registry- 跨域注册器
-