Class PathRequest
java.lang.Object
org.springframework.boot.autoconfigure.security.servlet.PathRequest
Factory that can be used to create a
RequestMatcher
for commonly used paths.- Since:
- 2.0.0
- Author:
- Madhura Bhave, Phillip Webb
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
The request matcher used to match against h2 console path. -
Method Summary
Modifier and TypeMethodDescriptionReturns a matcher that includes the H2 console location.static StaticResourceRequest
Returns aStaticResourceRequest
that can be used to create a matcher forlocations
.
-
Method Details
-
toStaticResources
Returns aStaticResourceRequest
that can be used to create a matcher forlocations
.- Returns:
- a
StaticResourceRequest
-
toH2Console
Returns a matcher that includes the H2 console location. For example:PathRequest.toH2Console()
- Returns:
- the configured
RequestMatcher
-