- Let's add a new method, addResourceHandlers, to the WebConfiguration class with the following content:
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/internal/**")
.addResourceLocations("classpath:/");
}
- Start the application by running ./gradlew clean bootRun
- Let's open http://localhost:8080/internal/application.properties in the browser to see the following results:
..................Content has been hidden....................
You can't read the all page of ebook, please click
here login for view all page.