类 StaticResourceRequest
java.lang.Object
org.springframework.boot.autoconfigure.security.reactive.StaticResourceRequest
Used to create a
ServerWebExchangeMatcher for static resources in commonly used
locations. Returned by PathRequest.toStaticResources().- 从以下版本开始:
- 2.0.0
- 作者:
- Madhura Bhave
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static final classThe server web exchange matcher used to match against resourcelocations. -
方法概要
修饰符和类型方法说明at(Set<StaticResourceLocation> locations) Returns a matcher that includes the specifiedLocations.at(StaticResourceLocation first, StaticResourceLocation... rest) Returns a matcher that includes the specifiedLocations.Returns a matcher that includes all commonly usedLocations.
-
方法详细资料
-
atCommonLocations
Returns a matcher that includes all commonly usedLocations. Theexcludingmethod can be used to remove specific locations if required. For example:PathRequest.toStaticResources().atCommonLocations().excluding(StaticResourceLocation.CSS)
- 返回:
- the configured
ServerWebExchangeMatcher
-
at
public StaticResourceRequest.StaticResourceServerWebExchange at(StaticResourceLocation first, StaticResourceLocation... rest) Returns a matcher that includes the specifiedLocations. For example:PathRequest.toStaticResources().at(StaticResourceLocation.CSS, StaticResourceLocation.JAVA_SCRIPT)
- 参数:
first- the first location to includerest- additional locations to include- 返回:
- the configured
ServerWebExchangeMatcher
-
at
public StaticResourceRequest.StaticResourceServerWebExchange at(Set<StaticResourceLocation> locations) Returns a matcher that includes the specifiedLocations. For example:PathRequest.toStaticResources().at(locations)
- 参数:
locations- the locations to include- 返回:
- the configured
ServerWebExchangeMatcher
-