类的使用
org.springframework.web.cors.CorsConfiguration
使用CorsConfiguration的程序包 程序包 说明 org.springframework.web.cors Support for CORS (Cross-Origin Resource Sharing), based on a commonCorsProcessor
strategy.org.springframework.web.cors.reactive Reactive support for CORS (Cross-Origin Resource Sharing), based on a commonCorsProcessor
strategy.org.springframework.web.reactive.config Spring WebFlux configuration infrastructure.org.springframework.web.reactive.handler Provides HandlerMapping implementations including abstract base classes.org.springframework.web.reactive.result.method Infrastructure for handler method processing.org.springframework.web.reactive.result.method.annotation Infrastructure for annotation-based handler method processing.org.springframework.web.servlet.config Defines the XML configuration namespace for Spring MVC.org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.handler Provides standard HandlerMapping implementations, including abstract base classes for custom implementations.org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotation
package.org.springframework.web.servlet.resource Support classes for serving static resources.org.springframework.web.socket.sockjs.support Support classes for SockJS including anAbstractSockJsService
implementation.org.springframework.web.cors中CorsConfiguration的使用
返回CorsConfiguration的org.springframework.web.cors中的方法 修饰符和类型 方法 说明 CorsConfiguration
CorsConfiguration. applyPermitDefaultValues()
By default a newly createdCorsConfiguration
does not permit any cross-origin requests and must be configured explicitly to indicate what should be allowed.CorsConfiguration
CorsConfiguration. combine(CorsConfiguration other)
Combine the non-null properties of the suppliedCorsConfiguration
with this one.CorsConfiguration
CorsConfigurationSource. getCorsConfiguration(HttpServletRequest request)
Return aCorsConfiguration
based on the incoming request.CorsConfiguration
UrlBasedCorsConfigurationSource. getCorsConfiguration(HttpServletRequest request)
返回变量类型为CorsConfiguration的类型的org.springframework.web.cors中的方法 修饰符和类型 方法 说明 Map<String,CorsConfiguration>
UrlBasedCorsConfigurationSource. getCorsConfigurations()
Get the CORS configuration.参数类型为CorsConfiguration的org.springframework.web.cors中的方法 修饰符和类型 方法 说明 protected List<String>
DefaultCorsProcessor. checkHeaders(CorsConfiguration config, List<String> requestHeaders)
Check the headers and determine the headers for the response of a pre-flight request.protected List<HttpMethod>
DefaultCorsProcessor. checkMethods(CorsConfiguration config, HttpMethod requestMethod)
Check the HTTP method and determine the methods for the response of a pre-flight request.protected String
DefaultCorsProcessor. checkOrigin(CorsConfiguration config, String requestOrigin)
Check the origin and determine the origin for the response.CorsConfiguration
CorsConfiguration. combine(CorsConfiguration other)
Combine the non-null properties of the suppliedCorsConfiguration
with this one.protected boolean
DefaultCorsProcessor. handleInternal(ServerHttpRequest request, ServerHttpResponse response, CorsConfiguration config, boolean preFlightRequest)
Handle the given request.boolean
CorsProcessor. processRequest(CorsConfiguration configuration, HttpServletRequest request, HttpServletResponse response)
Process a request given aCorsConfiguration
.boolean
DefaultCorsProcessor. processRequest(CorsConfiguration config, HttpServletRequest request, HttpServletResponse response)
void
UrlBasedCorsConfigurationSource. registerCorsConfiguration(String path, CorsConfiguration config)
Register aCorsConfiguration
for the specified path pattern.类型变量类型为CorsConfiguration的org.springframework.web.cors中的方法参数 修饰符和类型 方法 说明 void
UrlBasedCorsConfigurationSource. setCorsConfigurations(Map<String,CorsConfiguration> corsConfigurations)
Set CORS configuration based on URL patterns.参数类型为CorsConfiguration的org.springframework.web.cors中的构造器 构造器 说明 CorsConfiguration(CorsConfiguration other)
Construct a newCorsConfiguration
instance by copying all values from the suppliedCorsConfiguration
.org.springframework.web.cors.reactive中CorsConfiguration的使用
返回CorsConfiguration的org.springframework.web.cors.reactive中的方法 修饰符和类型 方法 说明 CorsConfiguration
CorsConfigurationSource. getCorsConfiguration(ServerWebExchange exchange)
Return aCorsConfiguration
based on the incoming request.CorsConfiguration
UrlBasedCorsConfigurationSource. getCorsConfiguration(ServerWebExchange exchange)
参数类型为CorsConfiguration的org.springframework.web.cors.reactive中的方法 修饰符和类型 方法 说明 protected List<String>
DefaultCorsProcessor. checkHeaders(CorsConfiguration config, List<String> requestHeaders)
Check the headers and determine the headers for the response of a pre-flight request.protected List<HttpMethod>
DefaultCorsProcessor. checkMethods(CorsConfiguration config, HttpMethod requestMethod)
Check the HTTP method and determine the methods for the response of a pre-flight request.protected String
DefaultCorsProcessor. checkOrigin(CorsConfiguration config, String requestOrigin)
Check the origin and determine the origin for the response.protected boolean
DefaultCorsProcessor. handleInternal(ServerWebExchange exchange, CorsConfiguration config, boolean preFlightRequest)
Handle the given request.boolean
CorsProcessor. process(CorsConfiguration configuration, ServerWebExchange exchange)
Process a request using the givenCorsConfiguration
.boolean
DefaultCorsProcessor. process(CorsConfiguration config, ServerWebExchange exchange)
void
UrlBasedCorsConfigurationSource. registerCorsConfiguration(String path, CorsConfiguration config)
Register aCorsConfiguration
for the specified path pattern.类型变量类型为CorsConfiguration的org.springframework.web.cors.reactive中的方法参数 修饰符和类型 方法 说明 void
UrlBasedCorsConfigurationSource. setCorsConfigurations(Map<String,CorsConfiguration> corsConfigurations)
Set CORS configuration based on URL patterns.org.springframework.web.reactive.config中CorsConfiguration的使用
返回CorsConfiguration的org.springframework.web.reactive.config中的方法 修饰符和类型 方法 说明 protected CorsConfiguration
CorsRegistration. getCorsConfiguration()
返回变量类型为CorsConfiguration的类型的org.springframework.web.reactive.config中的方法 修饰符和类型 方法 说明 protected Map<String,CorsConfiguration>
CorsRegistry. getCorsConfigurations()
Return the registeredCorsConfiguration
objects, keyed by path pattern.protected Map<String,CorsConfiguration>
WebFluxConfigurationSupport. getCorsConfigurations()
Callback for building the global CORS configuration.org.springframework.web.reactive.handler中CorsConfiguration的使用
返回CorsConfiguration的org.springframework.web.reactive.handler中的方法 修饰符和类型 方法 说明 protected CorsConfiguration
AbstractHandlerMapping. getCorsConfiguration(Object handler, ServerWebExchange exchange)
Retrieve the CORS configuration for the given handler.类型变量类型为CorsConfiguration的org.springframework.web.reactive.handler中的方法参数 修饰符和类型 方法 说明 void
AbstractHandlerMapping. setCorsConfigurations(Map<String,CorsConfiguration> corsConfigurations)
Set the "global" CORS configurations based on URL patterns.org.springframework.web.reactive.result.method中CorsConfiguration的使用
返回CorsConfiguration的org.springframework.web.reactive.result.method中的方法 修饰符和类型 方法 说明 protected CorsConfiguration
AbstractHandlerMethodMapping. getCorsConfiguration(Object handler, ServerWebExchange exchange)
protected CorsConfiguration
AbstractHandlerMethodMapping. initCorsConfiguration(Object handler, Method method, T mapping)
Extract and return the CORS configuration for the mapping.org.springframework.web.reactive.result.method.annotation中CorsConfiguration的使用
返回CorsConfiguration的org.springframework.web.reactive.result.method.annotation中的方法 修饰符和类型 方法 说明 protected CorsConfiguration
RequestMappingHandlerMapping. initCorsConfiguration(Object handler, Method method, RequestMappingInfo mappingInfo)
org.springframework.web.servlet.config中CorsConfiguration的使用
类型变量类型为CorsConfiguration的org.springframework.web.servlet.config中的方法参数 修饰符和类型 方法 说明 static RuntimeBeanReference
MvcNamespaceUtils. registerCorsConfigurations(Map<String,CorsConfiguration> corsConfigurations, ParserContext context, Object source)
Registers aMap<String, CorsConfiguration>
(mappedCorsConfiguration
s) under a well-known name unless already registered.org.springframework.web.servlet.config.annotation中CorsConfiguration的使用
返回CorsConfiguration的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 protected CorsConfiguration
CorsRegistration. getCorsConfiguration()
返回变量类型为CorsConfiguration的类型的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 protected Map<String,CorsConfiguration>
CorsRegistry. getCorsConfigurations()
Return the registeredCorsConfiguration
objects, keyed by path pattern.protected Map<String,CorsConfiguration>
WebMvcConfigurationSupport. getCorsConfigurations()
Return the registeredCorsConfiguration
objects, keyed by path pattern.org.springframework.web.servlet.handler中CorsConfiguration的使用
返回CorsConfiguration的org.springframework.web.servlet.handler中的方法 修饰符和类型 方法 说明 protected CorsConfiguration
AbstractHandlerMapping. getCorsConfiguration(Object handler, HttpServletRequest request)
Retrieve the CORS configuration for the given handler.protected CorsConfiguration
AbstractHandlerMethodMapping. getCorsConfiguration(Object handler, HttpServletRequest request)
CorsConfiguration
HandlerMappingIntrospector. getCorsConfiguration(HttpServletRequest request)
protected CorsConfiguration
AbstractHandlerMethodMapping. initCorsConfiguration(Object handler, Method method, T mapping)
Extract and return the CORS configuration for the mapping.参数类型为CorsConfiguration的org.springframework.web.servlet.handler中的方法 修饰符和类型 方法 说明 protected HandlerExecutionChain
AbstractHandlerMapping. getCorsHandlerExecutionChain(HttpServletRequest request, HandlerExecutionChain chain, CorsConfiguration config)
Update the HandlerExecutionChain for CORS-related handling.类型变量类型为CorsConfiguration的org.springframework.web.servlet.handler中的方法参数 修饰符和类型 方法 说明 void
AbstractHandlerMapping. setCorsConfigurations(Map<String,CorsConfiguration> corsConfigurations)
Set the "global" CORS configurations based on URL patterns.org.springframework.web.servlet.mvc.method.annotation中CorsConfiguration的使用
返回CorsConfiguration的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 protected CorsConfiguration
RequestMappingHandlerMapping. initCorsConfiguration(Object handler, Method method, RequestMappingInfo mappingInfo)
org.springframework.web.servlet.resource中CorsConfiguration的使用
返回CorsConfiguration的org.springframework.web.servlet.resource中的方法 修饰符和类型 方法 说明 CorsConfiguration
ResourceHttpRequestHandler. getCorsConfiguration(HttpServletRequest request)
Return the specified CORS configuration.参数类型为CorsConfiguration的org.springframework.web.servlet.resource中的方法 修饰符和类型 方法 说明 void
ResourceHttpRequestHandler. setCorsConfiguration(CorsConfiguration corsConfiguration)
Specify the CORS configuration for resources served by this handler.org.springframework.web.socket.sockjs.support中CorsConfiguration的使用
返回CorsConfiguration的org.springframework.web.socket.sockjs.support中的方法 修饰符和类型 方法 说明 CorsConfiguration
AbstractSockJsService. getCorsConfiguration(HttpServletRequest request)
CorsConfiguration
SockJsHttpRequestHandler. getCorsConfiguration(HttpServletRequest request)