I would like to add a resource folder regarding the location of the flag (in addition to the packed resources in my bank), for example:
/Directory
Application.jar
/resources
test.txt
I tried the following:
@Override
public void addResourceHandlers(final ResourceHandlerRegistry registry) {
registry.addResourceHandler("/resources/**")
.addResourceLocations("/resources/", "file:/resources/");
}
I also tried:
.addResourceLocations("/resources/", "file:resources/");
Access to http://localhost:8080/resources/test.txtany setting results in a whitelabel error page. How can i solve this?
cscan source
share