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

posted @ 2021-03-02 17:03  龙宇在天  阅读(143)  评论(0编辑  收藏  举报
//右侧添加目录 //增加页面点击显示24字社会主义核心价值观