版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_30788949/article/details/82147135
1.jsp资源
路径为src/main/webapp/WEB-INF/pages
2.application.properties设置访问路径
server.servlet.jsp.init-parameters.development=true 开启jsp调试,保证jsp更改及时生效
3.pom.xml
<resource>
<directory>src/main/webapp</directory>
<targetPath>META-INF/resources</targetPath>
<includes>
<include>**/**</include>
</includes>
</resource>
<plugin>
<!-- 必须是1.4.2版本,否则jsp访问不到 -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.4.2.RELEASE/version>
<plugin>
一定要注意mvn的插件一定是1.4.2.RELEASE,否则jsp访问不到。