How to serve static html content page in spring-boot
My fault: I had an additional class with @EnableWebMvc
annotation. This somehow messed up the spring-boot autoconfiguration. I removed it and now it works returning index.html
.
For me this worked, i am sure there is a better way ( like without .html ).
@RequestMapping("/")
public String index() {
return "index.html";
}