接口的使用
org.springframework.web.cors.reactive.CorsProcessor
使用CorsProcessor的程序包 程序包 说明 org.springframework.web.cors.reactive Reactive support for CORS (Cross-Origin Resource Sharing), based on a commonCorsProcessor
strategy.org.springframework.web.reactive.handler Provides HandlerMapping implementations including abstract base classes.org.springframework.web.cors.reactive中CorsProcessor的使用
实现CorsProcessor的org.springframework.web.cors.reactive中的类 修饰符和类型 类 说明 class
DefaultCorsProcessor
The default implementation ofCorsProcessor
, as defined by the CORS W3C recommendation.参数类型为CorsProcessor的org.springframework.web.cors.reactive中的构造器 构造器 说明 CorsWebFilter(CorsConfigurationSource configSource, CorsProcessor processor)
Constructor accepting aCorsConfigurationSource
used by the filter to find theCorsConfiguration
to use for each incoming request and a customCorsProcessor
to use to apply the matchedCorsConfiguration
for a request.org.springframework.web.reactive.handler中CorsProcessor的使用
返回CorsProcessor的org.springframework.web.reactive.handler中的方法 修饰符和类型 方法 说明 CorsProcessor
AbstractHandlerMapping. getCorsProcessor()
Return the configuredCorsProcessor
.参数类型为CorsProcessor的org.springframework.web.reactive.handler中的方法 修饰符和类型 方法 说明 void
AbstractHandlerMapping. setCorsProcessor(CorsProcessor corsProcessor)
Configure a customCorsProcessor
to use to apply the matchedCorsConfiguration
for a request.