I am new to Spring boot ( and servlet 3.0 ). I am trying to create spring mvc project with JSP as view. When I return a view from my controller it is not getting resolved a
If we want to use jsp as view in spring boot(which by default has tomcat server) we need to add the following to our pom.xml:
org.apache.tomcat.embed
tomcat-embed-jasper
provided
we need to add our pages inside
src/main/webapp/WEB-INF/view
After this we can specify the location for our jsp pages in application.properties
spring.mvc.view.prefix=/WEB-INF/view/
spring.mvc.view.suffix=.jsp