Avoid exposing spring.resources.favicon-locations as a property
Closes gh-9214
This commit is contained in:
@@ -117,7 +117,7 @@ public class ResourceProperties implements ResourceLoaderAware {
|
||||
return result;
|
||||
}
|
||||
|
||||
public List<Resource> getFaviconLocations() {
|
||||
public List<Resource> resolveFaviconLocations() {
|
||||
List<Resource> locations = new ArrayList<>(this.staticLocations.length + 1);
|
||||
if (this.resourceLoader != null) {
|
||||
for (String location : this.staticLocations) {
|
||||
|
||||
@@ -351,7 +351,7 @@ public class WebMvcAutoConfiguration {
|
||||
public ResourceHttpRequestHandler faviconRequestHandler() {
|
||||
ResourceHttpRequestHandler requestHandler = new ResourceHttpRequestHandler();
|
||||
requestHandler
|
||||
.setLocations(this.resourceProperties.getFaviconLocations());
|
||||
.setLocations(this.resourceProperties.resolveFaviconLocations());
|
||||
return requestHandler;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user