如何在spring boot中部署webapp环境呢
·
如何在spring boot中部署webapp环境呢
首先是引入web依赖
其次是与java同级新建一个webapp目录
然后在project-struct中+一个web将目录变量配置好

然后在pom依赖中加入一下代码
在build下
<resources>
<resource>
<directory>src/main/webapp</directory>
<targetPath>META-INF/resources</targetPath>
<includes>
<include>**/**</include>
</includes>
</resource>
</resources>
更多推荐
所有评论(0)