我是靠谱客的博主 文艺水池,这篇文章主要介绍boot开启热部署,现在分享给大家,希望可以做个参考。

#springboot开启热部署
. 在pom.xml中添加依赖

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>true</scope>
</dependency>
 . 在<plugins>中添加<plugin>
 <plugin>
<!--热部署配置-->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!--fork:如果没有该项配置,整个devtools不会起作用-->
<fork>true</fork>
</configuration>
</plugin>
.
在idea中设置
* file->setting->compile->Build project automatically
* ctrl+shift+alt+/ 在compile.automake.allow.when.app.running 勾选

最后

以上就是文艺水池最近收集整理的关于boot开启热部署的全部内容,更多相关boot开启热部署内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(109)

评论列表共有 0 条评论

立即
投稿
返回
顶部