Skip to content

Commit 654dee8

Browse files
committed
Additional notes on module access via ClassPathResource
See gh-28507
1 parent 7028de9 commit 654dee8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-core/src/main/java/org/springframework/core/io/ModuleResource.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@
2929
* performing {@link #getInputStream()} access via {@link Module#getResourceAsStream}.
3030
*
3131
* <p>Alternatively, consider accessing resources in a module path layout via
32-
* @link ClassPathResource} for exported resources, or specifically relative to
32+
* {@link ClassPathResource} for exported resources, or specifically relative to
3333
* a {@code Class} via {@link ClassPathResource#ClassPathResource(String, Class)}
3434
* for local resolution within the containing module of that specific class.
35+
* In common scenarios, module resources will simply be transparently visible as
36+
* classpath resources and therefore do not need any special treatment at all.
3537
*
3638
* @author Juergen Hoeller
3739
* @author Sam Brannen

0 commit comments

Comments
 (0)