idea spring boot 2 热部署,亲测有效

前言

  监听更改,自动重启

步骤

1.在pom.xml文件 <dependencies>内添加一个子节点,填入配置数据

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

 

右键选择Maven-->Reimport ,自动导入spring-boot-devtools

 

2. 打开 Settings-->Build,Execution,Deployment-->Compiler,勾选Build project automatically

 

3.按键Ctrl+Alt+Shift+/  选择registry ,勾选compiler.automake.allow.when.app.running

 

 

4.选择Edit Configurations,勾选对应选项

 

 

 

 


posted @ 2019-07-11 11:01  panle  阅读(198)  评论(0编辑  收藏  举报