idea中配置热部署

1.在子项目pom.xml中导入依赖

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

2.在父项目pom.xml中导入插件

  <plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <configuration>
      <fork>true</fork>
      <addResources>true</addResources>
    </configuration>
  </plugin>

3.setting->Compiler->勾选连续的ADBC

4.快捷键ctrl+alt+shift+/选择Registry勾选

actionSystem.assertFocusAccessFromEdt

compiler.automake.allow.when.app.running

5.重启idea

原文地址:https://www.cnblogs.com/zheaven/p/14469940.html