人工智能,零基础入门!http://www.captainbed.net/inner
第一步:添加依赖
使用spring-boot-devtools提供的开发者工具
spring-boot项目中pom.xml引入如下依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
第二步:开启自动编译
该方法基于类加载机制来实现热加载的,因此你修改完成代码后必须重新编译当前代码,按照如下2步设置开启:
IDEA开启项目自动编译,进入设置,Build,Execut, Deployment -> Compiler 勾选中左侧的Build Project automatically
IDEA开启项目运行时自动make, ctrl + shift + a搜索命令:registry -> 勾选compiler.automake.allow.when.app.running
1、IDEA开启项目自动编译,进入设置(ctrl+alt+s)—Build,Execution,Deployment> Compiler 勾选中左侧的Build Project automatically。

本文介绍了如何在IDEA中配置SpringBoot项目的热部署。通过添加spring-boot-devtools依赖并启用自动编译设置,包括在Build,Execution,Deployment> Compiler中启用Build Project automatically及在Registry中开启compiler.automake.allow.when.app.running,实现代码修改后的自动编译和热加载。这种方法适合Spring-boot项目,支持成员级别修改的热部署。"
137574713,22597803,使用Badboy录制JMeter脚本详解,"['自动化测试', '性能测试', 'jmeter', 'dubbo']
最低0.47元/天 解锁文章
5085





