第一步.在pom中加入热启动依赖

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

第二步.设置springboot自动编译

关于springboot热启动

第三步.ctrl + shift + alt + /,选择Registry,勾上 Compiler autoMake allow when app running

关于springboot热启动


这样当系统检测到程序有所改变的时候,就会自动编译启动






相关文章: