When I am hitting the URL it is downloading the JSP page but when I am using HTML page, it gets rendered in the browser. || HTML 1 - 0 JSP ||
Project structure
Application properties:
spring.mvc.view.prefix=/views/
spring.mvc.view.suffix=.html
Controller
It worked when I have added tomcat-embed-jasper dependency. Why does that happened?





Embedded tomcat consider jsp rendering as optional. That's why it is needed.Also As I can understand. You must have provided scope of tomcat-embed-jasper dependency as provided.