我是靠谱客的博主 感性发箍,这篇文章主要介绍idea热部署,现在分享给大家,希望可以做个参考。

1、pom文件引入坐标

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>

2、在pom文件增加下面配置

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork><!--必须添加这个配置-->
</configuration>
</plugin>
</plugins>
</build>

3、idea里面要设置
1、在IDEA中开启自动编译
在这里插入图片描述
2、Shift+Ctrl+Alt+/,选择Registry
选 compiler.automake.allow.when.app.running
重启项目就可以了

最后

以上就是感性发箍最近收集整理的关于idea热部署的全部内容,更多相关idea热部署内容请搜索靠谱客的其他文章。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部