热部署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

相关推荐
Rabitebla2 小时前
C++11 新特性详解(一):列表初始化、initializer_list 与右值引用
java·开发语言·数据结构·c++·算法·leetcode·list
洋不写bug2 小时前
JavaComparable、Comparator、Cloneable接口解析,深拷贝浅拷贝详细解析
android·java·开发语言
吴声子夜歌2 小时前
正则指引——Golang
开发语言·golang·正则表达式
坐吃山猪2 小时前
WebFlux_学习Subscriber总结
java·开发语言·学习·webflux
白露与泡影3 小时前
Java面试题及答案整理(2026年金九银十最新版,持续更新)
java·开发语言
少控科技3 小时前
农场设备管理代码(1)
开发语言·c#
❀搜不到3 小时前
isat-sam分割导出掩码图
开发语言·python
geovindu3 小时前
java: Memento Pattern
java·开发语言·后端·备忘录模式·行为模式
xcLeigh3 小时前
Unity基础:Start与Update方法——Unity脚本生命周期初探
java·unity·游戏引擎·教程
zephyr053 小时前
链表实现O(n log n)时间复杂度的排序——归并排序详解
java·数据结构·算法