Problem: I can\'t reach my view under WEB-INF/jsp
on my Spring Boot web MVC app.
What I\'ve done:
this is my JSP:<
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>required</scope>
</dependency>
Added this to my project that is in Intellj and it works..
Add Tomcat Embed Jasper Dependency in pom.xml file
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<version>9.0.30</version>
</dependency>
Zio, Are you sure you've included this dependency on your pom ?
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
Without this, I'm getting your same error.
If you've moved from using the standard thymeleaf project to Bootstrap (as I have), ensure you remove this dependency;
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
I'am adding this in my maven dependecies and now it's working
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>