1,创建webapp,来存放jsp资源
2,让webapp成为资源文件夹
3 ,把webapp设置成web资源文件夹
4,设置pom.xml,因为springboot不支持jsp,所以要导入对应的依赖,以及设置web资源
<!--用于编译jsp-->
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>8.5.37</scope>
</dependency>
<build>
<resources>
<resource>
<directory>src/main/webapp</directory>
<targetPath>META-INF/resources</targetPath>
<includes>
<include>**/**</include>
</includes>
</resource>
</resources>
</build>
5,生成的classes有对应的jsp即可