SpringBoot(二):SpringBoot 热部署

 1.配置pom:

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</build>
二、IDEA 设置

3. Register配置:

Ctrl+Shift+Alt+/ => Register => 找到并勾选compiler.automake.allow.when.app.running => IDEA重启

4. 修改完成重启即可。

原文地址:https://www.cnblogs.com/lgg20/p/11387463.html