@@ -460,12 +460,18 @@ contain multiple files with the same path and the same name. See
460
460
on wildcard support with the `classpath*:` resource prefix.
461
461
462
462
A passed-in `ResourceLoader` (for example, one supplied via
463
- <<resources-resourceloaderaware, `ResourceLoaderAware`>> semantics can be checked whether
463
+ <<resources-resourceloaderaware,`ResourceLoaderAware`>> semantics) can be checked whether
464
464
it implements this extended interface too.
465
465
466
466
`PathMatchingResourcePatternResolver` is a standalone implementation that is usable
467
467
outside an `ApplicationContext` and is also used by `ResourceArrayPropertyEditor` for
468
- populating `Resource[]` bean properties.
468
+ populating `Resource[]` bean properties. `PathMatchingResourcePatternResolver` is able to
469
+ resolve a specified resource location path into one or more matching `Resource` objects.
470
+ The source path may be a simple path which has a one-to-one mapping to a target
471
+ `Resource`, or alternatively may contain the special `classpath*:` prefix and/or internal
472
+ Ant-style regular expressions (matched using Spring's
473
+ `org.springframework.util.AntPathMatcher` utility). Both of the latter are effectively
474
+ wildcards.
469
475
470
476
[NOTE]
471
477
====
@@ -477,6 +483,8 @@ implements the `ResourcePatternResolver` interface and delegates to the default
477
483
====
478
484
479
485
486
+
487
+
480
488
[[resources-resourceloaderaware]]
481
489
== The `ResourceLoaderAware` Interface
482
490
@@ -525,6 +533,11 @@ constructor argument, or method parameter that expects the `ResourceLoader` type
525
533
as the field, constructor, or method in question carries the `@Autowired` annotation.
526
534
For more information, see <<beans-autowired-annotation>>.
527
535
536
+ NOTE: To load one or more `Resource` objects for a resource path that contains wildcards
537
+ or makes use of the special `classpath*:` resource prefix, consider having an instance of
538
+ <<resources-resourcepatternresolver,`ResourcePatternResolver`>> autowired into your
539
+ application components instead of `ResourceLoader`.
540
+
528
541
529
542
530
543
0 commit comments