springboot+jsp 遇到的坑
springboot 使用jsp:
1,修改配置文件,
spring: mvc: view: prefix: /WEB-INF/jsp/ suffix: .jsp
2,pom 加入:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
</dependency>

浙公网安备 33010602011771号