类 PathRequest
- java.lang.Object
- org.springframework.boot.autoconfigure.security.servlet.PathRequest
public final class PathRequest extends Object
Factory that can be used to create aRequestMatcher
for commonly used paths.- 从以下版本开始:
- 2.0.0
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
PathRequest.H2ConsoleRequestMatcher
The request matcher used to match against h2 console path.
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static PathRequest.H2ConsoleRequestMatcher
toH2Console()
Returns a matcher that includes the H2 console location.static StaticResourceRequest
toStaticResources()
Returns aStaticResourceRequest
that can be used to create a matcher forlocations
.
方法详细资料
toStaticResources
public static StaticResourceRequest toStaticResources()
Returns aStaticResourceRequest
that can be used to create a matcher forlocations
.
toH2Console
public static PathRequest.H2ConsoleRequestMatcher toH2Console()
Returns a matcher that includes the H2 console location. For example:PathRequest.toH2Console()
- 返回:
- the configured
RequestMatcher