热部署devtools配置

热部署配置

1.添加依赖

java 复制代码
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <scope>runtime</scope>
    <optional>true</optional>
</dependency>

2.添加父工程pom

pom 复制代码
<build>
        <finalName>springcloud2022</finalName>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>2.6.0</version>
                <configuration>
                    <fork>true</fork>
                    <addResources>true</addResources>
                </configuration>
            </plugin>
        </plugins>
    </build>

3.快捷键ctrl+alt+s打开setting,选择build*compiler,打钩

  • Automatically show first error in editor
  • Display notification on build completion
  • Build project automatically
  • Compile independent modules in parallel

4.快捷键ctrl+shift+alt+/打开registry

  • compile.automake.allow.when.app.running
  • actionSystem.assertFocusAccessFromEdt

5.重启IDEA

相关推荐
晨非辰1 小时前
《剑指Offer:单链表操作入门——从“头删”开始破解面试》
c语言·开发语言·数据结构·c++·笔记·算法·面试
sheji34164 小时前
【开题答辩全过程】以 python杭州亚运会数据分析与可视化开题为例,包含答辩的问题和答案
开发语言·python·数据分析
代码萌新知5 小时前
设计模式学习(五)装饰者模式、桥接模式、外观模式
java·学习·设计模式·桥接模式·装饰器模式·外观模式
iナナ7 小时前
Spring Web MVC入门
java·前端·网络·后端·spring·mvc
驱动探索者7 小时前
find 命令使用介绍
java·linux·运维·服务器·前端·学习·microsoft
卷Java8 小时前
违规通知功能修改说明
java·数据库·微信小程序·uni-app
CoderYanger8 小时前
优选算法-双指针:2.复写零
java·后端·算法·leetcode·职场和发展
weixin_446260858 小时前
快速构建网站的利器——Symfony PHP框架
开发语言·php·symfony
小雨凉如水8 小时前
k8s学习-pod的生命周期
java·学习·kubernetes
王夏奇8 小时前
C语言中#pragma的用法
c语言·开发语言