SpringBoot添加热部署

一.添加依赖

<!--热部署-->
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-devtools</artifactId>
      <optional>true</optional>
    </dependency>

二、pom.xml中导入plugin节点

  

 三、Ctrl+Shift+Alt+/ 弹出Registry

  

 四、勾选compiler.automake.allow.when.app.running

  

!!完成以上四部,热部署便配置完成,但是此热部署自动重新启动需等待几秒!!!!!!!!!!!!!!!

原文地址:https://www.cnblogs.com/mayuan01/p/12030042.html