1、JRebel简介
JRebel是一个热部署工具。

IDEA本身没有集成热部署工具,改动代码之后,都需要重新run或者debug,影响开发效率。因而可以在IDEA中安装JRebel插件。

安装和使用JRebel需要注意两点:激活和设置。

2、安装JRebel
【File 】----->【Settings】 -----> 【Plugins】

然后选择【Marketplace】,在搜索框中搜索JRebel,找到【JRebel and Xrebel for intellij】 ,点击【Install】,安装完成后点击【Restart IDE】,重启IDEA
image-1657591769168
3、激活JRebel
方式1:
1、在IDEA中,【File 】----->【Settings】 -----> 【JRebel & XRebel】,找到【Activate now(全新的是这个)】或者【Change license(已激活过的是这个)】,点击进入的激活界面
image-1657591788817
2、选择【Activate JRebel with】中的 【Team URL(connect to online licensing service)】

第一行输入:https://jrebel.qekang.com/6f540b75-a1f5-4ccc-ae32-d00e12eda632

第二行输入:xxxxxxxx@qq.com

第一行解释:服务地址
服务地址:https://jrebel.qekang.com/后面跟上{GUID}
 
生成GUID的几个地址:
https://www.guidgen.com
http://www.ofmonkey.com/transfer/guid
https://www.guidgenerator.com/online-guid-generator.aspx
 
 
第二行解释:邮箱

然后勾选同意,点击【Active JRebel】
image-1657591853414
image-1657591868576

最后,点一下【Work offline】,把JRebel设置为离线模式 ,不然过几天就失效了

image-1657591906477
image-1657591912578

4、相关配置

1、设置项目自动编译

【File 】----->【Settings】 -----> 【Build,Execution,Deployment】----->【Compiler】,勾选上【Build project automatically】
image-1657591956381

转自:https://blog.csdn.net/zhuzbYR/article/details/111460716?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.none-task-blog-2~default~CTRLIST~default-1-111460716-blog-123192289.pc_relevant_multi_platform_whitelistv2&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2~default~CTRLIST~default-1-111460716-blog-123192289.pc_relevant_multi_platform_whitelistv2&utm_relevant_index=1

上一篇 下一篇