Merge pull request #9179 from alimate/BAEL-3993
BAEL-3993: Added Trailing slash to Fix the Relative Path Bug
This commit is contained in:
commit
e65cfc7bd0
|
@ -28,7 +28,7 @@ public class FaviconConfiguration {
|
||||||
@Bean
|
@Bean
|
||||||
protected ResourceHttpRequestHandler faviconRequestHandler() {
|
protected ResourceHttpRequestHandler faviconRequestHandler() {
|
||||||
ResourceHttpRequestHandler requestHandler = new ResourceHttpRequestHandler();
|
ResourceHttpRequestHandler requestHandler = new ResourceHttpRequestHandler();
|
||||||
ClassPathResource classPathResource = new ClassPathResource("com/baeldung/images");
|
ClassPathResource classPathResource = new ClassPathResource("com/baeldung/images/");
|
||||||
List<Resource> locations = Arrays.asList(classPathResource);
|
List<Resource> locations = Arrays.asList(classPathResource);
|
||||||
requestHandler.setLocations(locations);
|
requestHandler.setLocations(locations);
|
||||||
return requestHandler;
|
return requestHandler;
|
||||||
|
|
Loading…
Reference in New Issue