SpringBoot IDEA热部署

2,290 阅读1分钟

开发过程中经常要修改代码,想要IDEA实现热部署?只需要下面5步即可

1、引入spring-boot-devtools依赖
<dependency>   
    <groupId>org.springframework.boot</groupId>  
    <artifactId>spring-boot-devtools</artifactId>   
    <scope>runtime</scope>   
    <optional>true</optional>
</dependency>

2、打开设置界面,允许自动编译,如图


3、快捷键Shift+Ctrl+Alt+/,选择Registry,如图


4、勾选下图选项,如图


5、重启IDEA