I'm using Spring Boot and running the webapp on the embedded Tomcat server
I got this error: "o.s.w.s.r.ResourceHttpRequestHandler : "Path with "WEB-INF" or "META-INF": [static/WEB-INF/views/loginPage.html]""
Here's my controller:
@Controller
public class GreetingsController {
@GetMapping(value = "/")
public String greetingText() {
return "loginPage";
}
}
application.properties:
server.address=0.0.0.0
server.port=8080
spring.mvc.view.prefix= /static/WEB-INF/views/
spring.mvc.view.suffix=.html
Project structure:
- webapp folder is empty
I'm confident that I have most necessary dependencies installed (Jasper, Spring Boot, Thymeleaf,..). I have done a good amount of searching on my own
Please do note that I have also tried moving the WEB-INF folder to the webapp and changing the view prefix accordingly, however, it did not come to fruition