Using spring boot starter 2.4.1 version
.
resources folder has the following structure. As it is seen hello.jsp is in templates folder. These are included in application.properties:
spring.mvc.view.prefix=/templates/
spring.mvc.view.suffix=.jsp
And a simple controller:
@Controller
public class HelloController {
@GetMapping("/hello")
public String index(){
return "hello";
}
}
But get 404.
Controller method is entering for sure.
Tried what is suggested in the following answer, tried using the webapp, but didn't help: /WEB-INF is not created inside target at all, it seems maven is ignoring webapp and WEB-INF folders.