クラス StaticResourceRequest
java.lang.ObjectSE
org.springframework.boot.autoconfigure.security.servlet.StaticResourceRequest
一般的に使用される場所に静的リソースの
RequestMatcher
を作成するために使用されます。PathRequest.toStaticResources()
によって返されます。- 導入:
- 2.0.0
- 作成者:
- Madhura Bhave, Phillip Webb
- 関連事項:
ネストされたクラスのサマリー
ネストされたクラスメソッドのサマリー
修飾子と型メソッド説明at
(SetSE<StaticResourceLocation> locations) 指定されたLocations
を含むマッチャーを返します。at
(StaticResourceLocation first, StaticResourceLocation... rest) 指定されたLocations
を含むマッチャーを返します。一般的に使用されるすべてのLocations
を含むマッチャーを返します。
メソッドの詳細
atCommonLocations
一般的に使用されるすべてのLocations
を含むマッチャーを返します。excluding
メソッドは、必要に応じて特定の場所を削除するために使用できます。例:PathRequest.toStaticResources().atCommonLocations().excluding(StaticResourceLocation.CSS)
- 戻り値:
- 設定された
RequestMatcher
at
public StaticResourceRequest.StaticResourceRequestMatcher at(StaticResourceLocation first, StaticResourceLocation... rest) 指定されたLocations
を含むマッチャーを返します。例:PathRequest.toStaticResources().at(StaticResourceLocation.CSS, StaticResourceLocation.JAVA_SCRIPT)
- パラメーター:
first
- 含める最初の場所rest
- 追加する場所- 戻り値:
- 設定された
RequestMatcher
at
public StaticResourceRequest.StaticResourceRequestMatcher at(SetSE<StaticResourceLocation> locations) 指定されたLocations
を含むマッチャーを返します。例:PathRequest.toStaticResources().at(locations)
- パラメーター:
locations
- 含める場所- 戻り値:
- 設定された
RequestMatcher