什么是热部署:简单来说当你的程序修改的时候不用再手动的开启关闭项目了太费劲了
怎样实现热部署呢?
第一步加依赖

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

第二步:添加插件

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

第三步:开启自动编译权限
在这里插入图片描述
在这里插入图片描述
第四步:更新值
在这里插入图片描述
按下 上面四个快捷键 出现
在这里插入图片描述
选第一个
在这里插入图片描述
第五步:重启idea

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐