idea如何给maven项目开启热部署

1)加入maven 依赖

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

2)setting->build->compile 中,将红框中的内容勾上

clipboard

3)按住 shift+alt+ctrl+/ ,并选择Registry

clipboard

4)勾选如下内容

clipboard

此时改动代码后,会自动重启项目!!

原文地址:https://www.cnblogs.com/houchen/p/13505571.html