2020-10-15

intellij idea开启debug热加载/热部署


一、POM集成

1

2

3

4

5

<dependency>

<groupId>org.springframework.boot</groupId>

<artifactId>spring-boot-devtools</artifactId>

<optional>true</optional>

</dependency>

二、勾选Build project automatically


2020-10-15

下面这一步,酌情设置。

2020-10-15

三、IDEA 设置为在程序运行过程中,依然允许自动编译

操作: ctrl + shift + alt + /,选择Registry,勾选勾上 Compiler autoMake allow when app running

2020-10-15

四、spring boot 热部署下面的running Application Update Policies

2020-10-15

 

  • 附加

intellij idea在debug时如果能开启热加载或热部署

一、开启debug热加载/热部署

2020-10-15

二、热加载

在菜单Run里找到“reload changed classes”即可在不重启程序的情况下进行热加载

2020-10-15