My static resources stopped working as soon as I added a new Controller (non rest) in my application with the following mapping
@RequestMapping(value = \"/{p
i dint use @EnableWebMVC. This worked for me and spring boot service server static content for default localhost:8888/ and also for localhost:8888/some/path/
@Configuration
public static class WebServerStaticResourceConfiguration extends WebMvcConfigurerAdapter {
@Override
public void addViewControllers(ViewControllerRegistry registry) {
registry.addViewController("/some/path/").setViewName("forward:/index.html");
}
}