Update Javadoc for ResourceHints.registerResourceIfNecessary()
See gh-29094
This commit is contained in:
parent
d57e061d3f
commit
018122f684
|
@ -118,6 +118,7 @@ public class ResourceHints {
|
||||||
* availability accordingly.
|
* availability accordingly.
|
||||||
* @param resource the resource to register
|
* @param resource the resource to register
|
||||||
* @see #registerPattern(String)
|
* @see #registerPattern(String)
|
||||||
|
* @see ClassPathResource#getAbsolutePath()
|
||||||
*/
|
*/
|
||||||
public void registerResourceIfNecessary(Resource resource) {
|
public void registerResourceIfNecessary(Resource resource) {
|
||||||
if (resource instanceof ClassPathResource classPathResource && classPathResource.exists()) {
|
if (resource instanceof ClassPathResource classPathResource && classPathResource.exists()) {
|
||||||
|
|
Loading…
Reference in New Issue