热部署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 分钟前
Java技术八股学习Day22
java·开发语言·学习
蒟蒻的贤5 分钟前
操作系统复习
java·开发语言·数据库
爱编程的小庄14 分钟前
Rust 发行版本及工具介绍
开发语言·后端·rust
lsx20240616 分钟前
SVN 检出操作详解
开发语言
sanggou16 分钟前
Spring Boot 中基于 WebClient 的 SSE 流式接口实战
java·人工智能
未若君雅裁17 分钟前
SpringBoot2.x与SpringBoot3.x自动配置注册的差异
java·spring boot
一晌小贪欢21 分钟前
Python 对象的“Excel 之旅”:使用 openpyxl 高效读写与封装实战
开发语言·python·excel·表格·openpyxl·python办公·读取表格
赵八斤23 分钟前
java 项目中配置多个数据源
java·开发语言·数据库
小冷coding28 分钟前
【Java】以 Java + Redis + MySQL 为技术栈,模拟电商商品详情的读写场景,Cache Aside+ 延迟双删 方案
java·redis·mysql
txinyu的博客31 分钟前
解析muduo源码之 StringPiece.h
开发语言·网络·c++