接口的使用
org.springframework.web.cors.CorsConfigurationSource
使用CorsConfigurationSource的程序包 程序包 说明 org.springframework.web.cors Support for CORS (Cross-Origin Resource Sharing), based on a commonCorsProcessor
strategy.org.springframework.web.filter Provides generic filter base classes allowing for bean-style configuration.org.springframework.web.servlet.handler Provides standard HandlerMapping implementations, including abstract base classes for custom implementations.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.socket.sockjs.transport Server-side support for SockJS transports includingTransportHandler
implementations for processing incoming requests, theirsession
counterparts for sending messages over the various transports, andDefaultSockJsService
.org.springframework.web.socket.sockjs.transport.handler TransportHandler
implementation classes as well as a concreteSockJsService
.org.springframework.web.cors中CorsConfigurationSource的使用
实现CorsConfigurationSource的org.springframework.web.cors中的类 修饰符和类型 类 说明 class
UrlBasedCorsConfigurationSource
Provide a per requestCorsConfiguration
instance based on a collection ofCorsConfiguration
mapped on path patterns.org.springframework.web.filter中CorsConfigurationSource的使用
参数类型为CorsConfigurationSource的org.springframework.web.filter中的构造器 构造器 说明 CorsFilter(CorsConfigurationSource configSource)
Constructor accepting aCorsConfigurationSource
used by the filter to find theCorsConfiguration
to use for each incoming request.org.springframework.web.servlet.handler中CorsConfigurationSource的使用
实现CorsConfigurationSource的org.springframework.web.servlet.handler中的类 修饰符和类型 类 说明 class
HandlerMappingIntrospector
Helper class to get information from theHandlerMapping
that would serve a specific request.参数类型为CorsConfigurationSource的org.springframework.web.servlet.handler中的方法 修饰符和类型 方法 说明 void
AbstractHandlerMapping. setCorsConfigurationSource(CorsConfigurationSource corsConfigurationSource)
Set the "global" CORS configuration source.org.springframework.web.servlet.resource中CorsConfigurationSource的使用
实现CorsConfigurationSource的org.springframework.web.servlet.resource中的类 修饰符和类型 类 说明 class
ResourceHttpRequestHandler
HttpRequestHandler
that serves static resources in an optimized way according to the guidelines of Page Speed, YSlow, etc.org.springframework.web.socket.sockjs.support中CorsConfigurationSource的使用
实现CorsConfigurationSource的org.springframework.web.socket.sockjs.support中的类 修饰符和类型 类 说明 class
AbstractSockJsService
An abstract base class forSockJsService
implementations that provides SockJS path resolution and handling of static SockJS requests (e.g.class
SockJsHttpRequestHandler
AnHttpRequestHandler
that allows mapping aSockJsService
to requests in a Servlet container.org.springframework.web.socket.sockjs.transport中CorsConfigurationSource的使用
实现CorsConfigurationSource的org.springframework.web.socket.sockjs.transport中的类 修饰符和类型 类 说明 class
TransportHandlingSockJsService
A basic implementation ofSockJsService
with support for SPI-based transport handling and session management.org.springframework.web.socket.sockjs.transport.handler中CorsConfigurationSource的使用
实现CorsConfigurationSource的org.springframework.web.socket.sockjs.transport.handler中的类 修饰符和类型 类 说明 class
DefaultSockJsService
A default implementation ofSockJsService
with all defaultTransportHandler
implementations pre-registered.