第一步, 引入jar包
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>

第二步, 引入插件
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
<fork>true</fork>
</configuration>
</plugin>

第三步, Idea配置
1. 打开settings, 直接搜索"Compiler",选中 Build project automatically

2. ctrl+shift+a 调起搜索,输入registry,

3. 点击第一项,打开Registry编辑框,找到compiler.automake.allow.when.app.running勾选中

springbootd的热部署完成!
SpringBoot热部署配置指南
5068

被折叠的 条评论
为什么被折叠?



