From 2927195b0225abbc1cd5dd3a0fd6c92d12b7a84e Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 1 Nov 2018 17:48:56 +0900 Subject: [PATCH] Fix StaticResourceRequest javadoc examples Closes gh-15050 --- .../security/reactive/StaticResourceRequest.java | 6 +++--- .../security/servlet/StaticResourceRequest.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/reactive/StaticResourceRequest.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/reactive/StaticResourceRequest.java index 6c29005d48f..e3e45a116d5 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/reactive/StaticResourceRequest.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/reactive/StaticResourceRequest.java @@ -53,7 +53,7 @@ public final class StaticResourceRequest { * {@link StaticResourceServerWebExchange#excluding(StaticResourceLocation, StaticResourceLocation...) * excluding} method can be used to remove specific locations if required. For * example:
-	 * StaticResourceRequest.atCommonLocations().excluding(StaticResourceLocation.CSS)
+	 * PathRequest.toStaticResources().atCommonLocations().excluding(StaticResourceLocation.CSS)
 	 * 
* @return the configured {@link ServerWebExchangeMatcher} */ @@ -64,7 +64,7 @@ public final class StaticResourceRequest { /** * Returns a matcher that includes the specified {@link StaticResourceLocation * Locations}. For example:
-	 * at(StaticResourceLocation.CSS, StaticResourceLocation.JAVA_SCRIPT)
+	 * PathRequest.toStaticResources().at(StaticResourceLocation.CSS, StaticResourceLocation.JAVA_SCRIPT)
 	 * 
* @param first the first location to include * @param rest additional locations to include @@ -78,7 +78,7 @@ public final class StaticResourceRequest { /** * Returns a matcher that includes the specified {@link StaticResourceLocation * Locations}. For example:
-	 * at(locations)
+	 * PathRequest.toStaticResources().at(locations)
 	 * 
* @param locations the locations to include * @return the configured {@link ServerWebExchangeMatcher} diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/servlet/StaticResourceRequest.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/servlet/StaticResourceRequest.java index 8d473fcbc63..499ea8f8a60 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/servlet/StaticResourceRequest.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/servlet/StaticResourceRequest.java @@ -56,7 +56,7 @@ public final class StaticResourceRequest { * {@link StaticResourceRequestMatcher#excluding(StaticResourceLocation, StaticResourceLocation...) * excluding} method can be used to remove specific locations if required. For * example:
-	 * StaticResourceRequest.atCommonLocations().excluding(StaticResourceLocation.CSS)
+	 * PathRequest.toStaticResources().atCommonLocations().excluding(StaticResourceLocation.CSS)
 	 * 
* @return the configured {@link RequestMatcher} */ @@ -67,7 +67,7 @@ public final class StaticResourceRequest { /** * Returns a matcher that includes the specified {@link StaticResourceLocation * Locations}. For example:
-	 * StaticResourceRequest.at(StaticResourceLocation.CSS, StaticResourceLocation.JAVA_SCRIPT)
+	 * PathRequest.toStaticResources().at(StaticResourceLocation.CSS, StaticResourceLocation.JAVA_SCRIPT)
 	 * 
* @param first the first location to include * @param rest additional locations to include @@ -81,7 +81,7 @@ public final class StaticResourceRequest { /** * Returns a matcher that includes the specified {@link StaticResourceLocation * Locations}. For example:
-	 * StaticResourceRequest.at(locations)
+	 * PathRequest.toStaticResources().at(locations)
 	 * 
* @param locations the locations to include * @return the configured {@link RequestMatcher}