学习spring boot 2.x时,使用jsp作为前端页面。在application.properties配置了jsp所在位置
spring.mvc.view.prefix:/WEB-INF/views/
spring.mvc.view.suffix:.jsp
启动spring boot时报错,找不到页面
This application has no explicit mapping for /error, so you are seeing this as a fallback.
<!--jsp页面使用jstl标签 -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
<!--用于编译jsp -->
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
spring boot 2.x Path with "WEB-INF" or "META-INF"
原文:https://www.cnblogs.com/chensuqian/p/10507396.html