diff --git a/spring-core/src/main/java/org/springframework/core/io/Resource.java b/spring-core/src/main/java/org/springframework/core/io/Resource.java index 3b4c4e3ddb7..0f4228e6508 100644 --- a/spring-core/src/main/java/org/springframework/core/io/Resource.java +++ b/spring-core/src/main/java/org/springframework/core/io/Resource.java @@ -162,7 +162,7 @@ public interface Resource extends InputStreamSource { *

The given consumer will be invoked a single time by default - but may * also be invoked multiple times in case of a multi-content resource handle, * for example returned from a - * {@link ResourceLoader#getResource getResource("classpath*:..."} call. + * {@link ResourceLoader#getResource getResource("classpath*:...")} call. * While {@link #getInputStream()} returns a merged sequence of content * in such a case, this method performs one callback per file content. * @param consumer a consumer for each InputStream diff --git a/spring-core/src/main/java/org/springframework/core/io/ResourceLoader.java b/spring-core/src/main/java/org/springframework/core/io/ResourceLoader.java index 2b0b0d0d76b..8b0ef92a7d7 100644 --- a/spring-core/src/main/java/org/springframework/core/io/ResourceLoader.java +++ b/spring-core/src/main/java/org/springframework/core/io/ResourceLoader.java @@ -43,14 +43,14 @@ import org.springframework.util.ResourceUtils; public interface ResourceLoader { /** - * Pseudo URL prefix for loading from the class path: "classpath:". - * This retrieves the "nearest" matching resource in the classpath. + * Pseudo URL prefix for loading from the class path: {@value}. + *

This retrieves the "nearest" matching resource in the classpath. * @see ClassLoader#getResource */ String CLASSPATH_URL_PREFIX = ResourceUtils.CLASSPATH_URL_PREFIX; /** - * Pseudo URL prefix for all matching resources from the class path: {@code "classpath*:"}. + * Pseudo URL prefix for all matching resources from the class path: {@value}. *

This differs from the common {@link #CLASSPATH_URL_PREFIX "classpath:"} prefix * in that it retrieves all matching resources for a given path. For example, to * locate all "messages.properties" files in the root of all deployed JAR files @@ -72,7 +72,7 @@ public interface ResourceLoader { * Return a {@code Resource} handle for the specified resource location. *

The handle should always be a reusable resource descriptor, * allowing for multiple {@link Resource#getInputStream()} calls. - *