I have a simple question. In a Spring Boot Application I have a controller that works fine:
@GetMapping("/mycats")
public String getCats(){
return "cats.html";
}
cats.html is a html file in resources/static/
When I change the action URL like this
@GetMapping("/mycats/my")
public String getCats(){
return "cats.html";
}
Spring cannot find the html file anymore. I have tried many directory combinations and still no success. I don't use thymeleaf/jsp. Why is that happening?