@@ -184,7 +184,7 @@ public static RouterFunction<ServerResponse> resource(RequestPredicate predicate
184
184
* Route requests that match the given pattern to resources relative to the given root location.
185
185
* For instance
186
186
* <pre class="code">
187
- * Resource location = new FileSystemResource ("public-resources/");
187
+ * Resource location = new FileUrlResource ("public-resources/");
188
188
* RouterFunction<ServerResponse> resources = RouterFunctions.resources("/resources/**", location);
189
189
* </pre>
190
190
* @param pattern the pattern to match
@@ -201,7 +201,7 @@ public static RouterFunction<ServerResponse> resources(String pattern, Resource
201
201
* Route requests that match the given pattern to resources relative to the given root location.
202
202
* For instance
203
203
* <pre class="code">
204
- * Resource location = new FileSystemResource ("public-resources/");
204
+ * Resource location = new FileUrlResource ("public-resources/");
205
205
* RouterFunction<ServerResponse> resources = RouterFunctions.resources("/resources/**", location);
206
206
* </pre>
207
207
* @param pattern the pattern to match
@@ -224,7 +224,7 @@ public static RouterFunction<ServerResponse> resources(String pattern, Resource
224
224
* <pre class="code">
225
225
* Mono<Resource> defaultResource = Mono.just(new ClassPathResource("index.html"));
226
226
* Function<ServerRequest, Mono<Resource>> lookupFunction =
227
- * RouterFunctions.resourceLookupFunction("/resources/**", new FileSystemResource ("public-resources/"))
227
+ * RouterFunctions.resourceLookupFunction("/resources/**", new FileUrlResource ("public-resources/"))
228
228
* .andThen(resourceMono -> resourceMono.switchIfEmpty(defaultResource));
229
229
* RouterFunction<ServerResponse> resources = RouterFunctions.resources(lookupFunction);
230
230
* </pre>
@@ -761,7 +761,7 @@ public interface Builder {
761
761
* Route requests that match the given pattern to resources relative to the given root location.
762
762
* For instance
763
763
* <pre class="code">
764
- * Resource location = new FileSystemResource ("public-resources/");
764
+ * Resource location = new FileUrlResource ("public-resources/");
765
765
* RouterFunction<ServerResponse> resources = RouterFunctions.resources("/resources/**", location);
766
766
* </pre>
767
767
* @param pattern the pattern to match
@@ -775,7 +775,7 @@ public interface Builder {
775
775
* Route requests that match the given pattern to resources relative to the given root location.
776
776
* For instance
777
777
* <pre class="code">
778
- * Resource location = new FileSystemResource ("public-resources/");
778
+ * Resource location = new FileUrlResource ("public-resources/");
779
779
* RouterFunction<ServerResponse> resources = RouterFunctions.resources("/resources/**", location);
780
780
* </pre>
781
781
* @param pattern the pattern to match
0 commit comments