接口的使用
org.springframework.util.PathMatcher
使用PathMatcher的程序包 程序包 说明 org.springframework.core.io.support Support classes for Spring's resource abstraction.org.springframework.messaging.handler Basic abstractions for working with message handler methods.org.springframework.messaging.simp.annotation.support Support classes for handling messages from simple messaging protocols (like STOMP).org.springframework.messaging.simp.broker Provides a "simple" message broker implementation along with an abstract base class and other supporting types such as a registry for subscriptions.org.springframework.messaging.simp.config Configuration support for WebSocket messaging using higher level messaging protocols.org.springframework.messaging.simp.user Support for handling messages to "user" destinations (i.e. destinations that are unique to a user's sessions), primarily translating the destinations and then forwarding the updated message to the broker.org.springframework.util Miscellaneous utility classes, such as String manipulation utilities, a Log4J configurer, and a state holder for paged lists of objects.org.springframework.web.cors Support for CORS (Cross-Origin Resource Sharing), based on a commonCorsProcessor
strategy.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 Standard controller implementations for the Servlet MVC framework that comes with Spring.org.springframework.web.servlet.mvc.condition Common MVC logic for matching incoming requests based on conditions.org.springframework.web.servlet.mvc.method Servlet-based infrastructure for handler method processing, building on theorg.springframework.web.method
package.org.springframework.web.servlet.resource Support classes for serving static resources.org.springframework.core.io.support中PathMatcher的使用
返回PathMatcher的org.springframework.core.io.support中的方法 修饰符和类型 方法 说明 PathMatcher
PathMatchingResourcePatternResolver. getPathMatcher()
Return the PathMatcher that this resource pattern resolver uses.参数类型为PathMatcher的org.springframework.core.io.support中的方法 修饰符和类型 方法 说明 void
PathMatchingResourcePatternResolver. setPathMatcher(PathMatcher pathMatcher)
Set the PathMatcher implementation to use for this resource pattern resolver.org.springframework.messaging.handler中PathMatcher的使用
参数类型为PathMatcher的org.springframework.messaging.handler中的构造器 构造器 说明 DestinationPatternsMessageCondition(String[] patterns, PathMatcher matcher)
Constructor with patterns and aPathMatcher
instance.org.springframework.messaging.simp.annotation.support中PathMatcher的使用
返回PathMatcher的org.springframework.messaging.simp.annotation.support中的方法 修饰符和类型 方法 说明 PathMatcher
SimpAnnotationMethodMessageHandler. getPathMatcher()
Return the PathMatcher implementation to use for matching destinations.参数类型为PathMatcher的org.springframework.messaging.simp.annotation.support中的方法 修饰符和类型 方法 说明 void
SimpAnnotationMethodMessageHandler. setPathMatcher(PathMatcher pathMatcher)
Set the PathMatcher implementation to use for matching destinations against configured destination patterns.org.springframework.messaging.simp.broker中PathMatcher的使用
返回PathMatcher的org.springframework.messaging.simp.broker中的方法 修饰符和类型 方法 说明 PathMatcher
DefaultSubscriptionRegistry. getPathMatcher()
Return the configuredPathMatcher
.参数类型为PathMatcher的org.springframework.messaging.simp.broker中的方法 修饰符和类型 方法 说明 void
DefaultSubscriptionRegistry. setPathMatcher(PathMatcher pathMatcher)
Specify thePathMatcher
to use.void
SimpleBrokerMessageHandler. setPathMatcher(PathMatcher pathMatcher)
When configured, the given PathMatcher is passed down to the underlying SubscriptionRegistry to use for matching destination to subscriptions.org.springframework.messaging.simp.config中PathMatcher的使用
返回PathMatcher的org.springframework.messaging.simp.config中的方法 修饰符和类型 方法 说明 PathMatcher
AbstractMessageBrokerConfiguration. getPathMatcher()
Provide access to the configured PatchMatcher for access from other configuration classes.protected PathMatcher
MessageBrokerRegistry. getPathMatcher()
参数类型为PathMatcher的org.springframework.messaging.simp.config中的方法 修饰符和类型 方法 说明 MessageBrokerRegistry
MessageBrokerRegistry. setPathMatcher(PathMatcher pathMatcher)
Configure the PathMatcher to use to match the destinations of incoming messages to@MessageMapping
and@SubscribeMapping
methods.org.springframework.messaging.simp.user中PathMatcher的使用
参数类型为PathMatcher的org.springframework.messaging.simp.user中的方法 修饰符和类型 方法 说明 void
DefaultUserDestinationResolver. setPathMatcher(PathMatcher pathMatcher)
已过时。as of 4.3.14 this property is no longer used and is replaced byDefaultUserDestinationResolver.setRemoveLeadingSlash(boolean)
that indicates more explicitly whether to keep the leading slash which may or may not be the case regardless of how thePathMatcher
is configured.org.springframework.util中PathMatcher的使用
实现PathMatcher的org.springframework.util中的类 修饰符和类型 类 说明 class
AntPathMatcher
PathMatcher
implementation for Ant-style path patterns.返回PathMatcher的org.springframework.util中的方法 修饰符和类型 方法 说明 PathMatcher
SimpleRouteMatcher. getPathMatcher()
Return the underlyingPathMatcher
delegate.参数类型为PathMatcher的org.springframework.util中的构造器 构造器 说明 SimpleRouteMatcher(PathMatcher pathMatcher)
Create a newSimpleRouteMatcher
for the givenPathMatcher
delegate.org.springframework.web.cors中PathMatcher的使用
参数类型为PathMatcher的org.springframework.web.cors中的方法 修饰符和类型 方法 说明 void
UrlBasedCorsConfigurationSource. setPathMatcher(PathMatcher pathMatcher)
Set the PathMatcher implementation to use for matching URL paths against registered URL patterns.org.springframework.web.servlet.config.annotation中PathMatcher的使用
返回PathMatcher的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 PathMatcher
PathMatchConfigurer. getPathMatcher()
PathMatcher
WebMvcConfigurationSupport. mvcPathMatcher()
Return a globalPathMatcher
instance for path matching patterns inHandlerMappings
.参数类型为PathMatcher的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 InterceptorRegistration
InterceptorRegistration. pathMatcher(PathMatcher pathMatcher)
A PathMatcher implementation to use with this interceptor.HandlerMapping
WebMvcConfigurationSupport. resourceHandlerMapping(UrlPathHelper urlPathHelper, PathMatcher pathMatcher, ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)
Return a handler mapping ordered at Integer.MAX_VALUE-1 with mapped resource handlers.PathMatchConfigurer
PathMatchConfigurer. setPathMatcher(PathMatcher pathMatcher)
Set the PathMatcher implementation to use for matching URL paths against registered URL patterns.HandlerMapping
WebMvcConfigurationSupport. viewControllerHandlerMapping(PathMatcher pathMatcher, UrlPathHelper urlPathHelper, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)
Return a handler mapping ordered at 1 to map URL paths directly to view names.org.springframework.web.servlet.handler中PathMatcher的使用
返回PathMatcher的org.springframework.web.servlet.handler中的方法 修饰符和类型 方法 说明 PathMatcher
AbstractHandlerMapping. getPathMatcher()
Return the PathMatcher implementation to use for matching URL paths against registered URL patterns.PathMatcher
MappedInterceptor. getPathMatcher()
The configured PathMatcher, ornull
if none.参数类型为PathMatcher的org.springframework.web.servlet.handler中的方法 修饰符和类型 方法 说明 boolean
MappedInterceptor. matches(String lookupPath, PathMatcher pathMatcher)
Determine a match for the given lookup path.void
AbstractHandlerMapping. setPathMatcher(PathMatcher pathMatcher)
Set the PathMatcher implementation to use for matching URL paths against registered URL patterns.void
MappedInterceptor. setPathMatcher(PathMatcher pathMatcher)
Configure a PathMatcher to use with this MappedInterceptor instead of the one passed by default to theMappedInterceptor.matches(String, org.springframework.util.PathMatcher)
method.参数类型为PathMatcher的org.springframework.web.servlet.handler中的构造器 构造器 说明 RequestMatchResult(String matchingPattern, String lookupPath, PathMatcher pathMatcher)
Create an instance with a matching pattern.org.springframework.web.servlet.mvc中PathMatcher的使用
参数类型为PathMatcher的org.springframework.web.servlet.mvc中的方法 修饰符和类型 方法 说明 void
WebContentInterceptor. setPathMatcher(PathMatcher pathMatcher)
Set the PathMatcher implementation to use for matching URL paths against registered URL patterns, for determining cache mappings.org.springframework.web.servlet.mvc.condition中PathMatcher的使用
参数类型为PathMatcher的org.springframework.web.servlet.mvc.condition中的构造器 构造器 说明 PatternsRequestCondition(String[] patterns, UrlPathHelper urlPathHelper, PathMatcher pathMatcher, boolean useTrailingSlashMatch)
Alternative constructor with additional, optionalUrlPathHelper
,PathMatcher
, and whether to automatically match trailing slashes.PatternsRequestCondition(String[] patterns, UrlPathHelper urlPathHelper, PathMatcher pathMatcher, boolean useSuffixPatternMatch, boolean useTrailingSlashMatch)
已过时。as of 5.2.4.PatternsRequestCondition(String[] patterns, UrlPathHelper urlPathHelper, PathMatcher pathMatcher, boolean useSuffixPatternMatch, boolean useTrailingSlashMatch, List<String> fileExtensions)
已过时。as of 5.2.4.org.springframework.web.servlet.mvc.method中PathMatcher的使用
返回PathMatcher的org.springframework.web.servlet.mvc.method中的方法 修饰符和类型 方法 说明 PathMatcher
RequestMappingInfo.BuilderConfiguration. getPathMatcher()
Return a custom PathMatcher to use for the PatternsRequestCondition, if any.参数类型为PathMatcher的org.springframework.web.servlet.mvc.method中的方法 修饰符和类型 方法 说明 void
RequestMappingInfo.BuilderConfiguration. setPathMatcher(PathMatcher pathMatcher)
Set a custom PathMatcher to use for the PatternsRequestCondition.org.springframework.web.servlet.resource中PathMatcher的使用
返回PathMatcher的org.springframework.web.servlet.resource中的方法 修饰符和类型 方法 说明 PathMatcher
ResourceUrlProvider. getPathMatcher()
Return the configuredPathMatcher
.参数类型为PathMatcher的org.springframework.web.servlet.resource中的方法 修饰符和类型 方法 说明 void
ResourceUrlProvider. setPathMatcher(PathMatcher pathMatcher)
Configure aPathMatcher
to use when comparing target lookup path against resource mappings.