解决SpringBoot总是找不到jsp
添加四个坐标
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<!--<scope>provided</scope>-->
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
目录结构
application.properties配置视图解析器
写一个控制器提供跳转
设置 工作路径为$MODULE_DIR$,右侧的下拉选可以选
如果没有该选项,选择本项目
运行成功
参考https://blog.csdn.net/chuan8898439/article/details/82958903