在 IDEA 中使用 JRebel 实现 SpringBoot 热部署

在最近 SpringBoot 项目中使用 spring-boot-devtools 没有达到热部署,所以另找方法使用 JRebel 来实现,下面分享一下具体实现过程。

一、安装 JRebel 插件

Plugins 中搜索 JRebel for IntelliJ 并安装。

二、激活 JRebel 插件

可以选择 试用 或者 其他的激活方法

三、配置

  1. Setting -> Build, Execution, Deployment -> Compiler 勾选 Build project automatically

  2. 按下 Ctrl + Shift + A,输入 Registry,找到 compiler.automake.allow.when.app.running 将其选中

  3. 右击当前项目选择 JRebel -> rebel.xml,会在 src\main\resources 目录下生成 rebel.xml 文件,内容只需默认即可。

猜你喜欢

转载自www.cnblogs.com/StarUDream/p/9045489.html