I created a spring boot application with initialiser.
The spring boot version is 2.1.3. release.
The issue is that I want to include JSP in the boot app but there is no webapp folder generated. I had selected Spring MVC while generating the app.
I created a jsp in src/main/resources/templates folder and tried to load the same with various configuration in application.properties like,
spring.mvc.view.prefix=/WEB-INF/templates/
spring.mvc.view.suffix=.jsp
spring.mvc.view.prefix=/WEB-INF/classes/templates/
spring.mvc.view.suffix=.jsp
spring.mvc.view.prefix=/templates/
spring.mvc.view.suffix=.jsp
But none of them are working. I gets 404 whitelabel error.
I tried to check spring references but I couldn't find any changelog related to template folder.
I also tried adding below dependencies in pom.xml
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<scope>provided</scope>
</dependency>