How to do it...

  1. 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:/"); }
  1. Start the application by running ./gradlew clean bootRun
  2. 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.
Reset
3.145.156.46