IDEA热部署
2019-04-09 本文已影响0人
军_ea7f
经常在使用Idea的时候,修改了程序,需要反复的重启程序,查看效果,这样比较耽误开发时间。可以在项目中加入热部署,节省时间。
1.pom加入依赖
<!--热部署依赖-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
2.idea设置自动编译
打√自动编译
3.IDEA设置Registry
IDEA设置Registry