添加 JRabel配置使用

This commit is contained in:
dashan 2023-11-30 23:04:41 +08:00
parent 0a59cd7a85
commit a75eb4a788
12 changed files with 73 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -0,0 +1,73 @@
# JRebel本地热部署配置&破解
## 1.介绍
JRebel是一款JVM插件它使得Java代码修改后不用重启项目立即生效。IDEA上原生是不支持热部署的一般更新了 Java 文件后要手动重启 Tomcat 服务器,修改才能生效;所以推荐使用 JRebel 插件进行热部署。
## 2.JRebel安装
### 2.1.打开IDEA选择File—>Settings—>Plugins—>在右侧选择Marketplace
### 2.2.在搜索框输入jrebel—>选择搜索结果—>点击Install安装如下图。
![img](assets/24a92ee6d16820f3e3316512963d51a2.png)
## 3.JRebel激活
### 3.1.安装之后需要重启IDEAJRebel插件会提示需要激活点击Jrebel Activation进行激活。
![image-20231130221753446](assets/image-20231130221753446.png)
### 3.2.填写信息
#### 3.2.1 Team URL填入 http://127.0.0.1:8888/{GUID}GUID可以使用[在线GUID地址](https://www.guidgen.com/)在线生成,然后替换{GUID}就行
#### 3.2.2 下面的一个输入框填入邮箱
#### 3.2.3 选中我同意
![image-20231130222001511](assets/image-20231130222001511.png)
### 3.3.提交如果失败 报Unable to connect to license server.Check your network connnection and/or VPN settings. 执行下面步骤进行操作
#### 3.3.1 需要在[此处下载](https://github.com/ilanyu/ReverseProxy/releases/tag/v1.4)自己机器系统相对应的工具,如图:
![img](assets/3ff8fa11a87697616bd11137a182cf7c.png)
#### 3.3.2 下载好了后,进行安装打开(激活插件时,程序保持启动,激活成功后可关闭),如图:
![img](assets/8b3d42fab8fbd78779f1e6a1092f3fb6.png)
#### 3.3.3 点击Change license按钮再次进行提交
#### 3.3.4 成功
![img](assets/a4d185de35b56ff602f8b2a432c9128f.png)
## 4.开启JRabel
### 4.1.点击左侧按钮打开面板
### 4.2.选择要开启JRabel的项目
![image-20231130223329138](assets/image-20231130223329138.png)
### 4.3.使用JRabel启动项目
![image-20231130223614098](assets/image-20231130223614098.png)
![image-20231130223534473](assets/image-20231130223534473.png)
### 4.4 观察启动日志 如果出现下面错误信息则JRabel热更新不生效执行以下步骤进行修复
> JRebel: ERROR Failed to obtain seat. Unable to connect to license server. Check your network connection and/or VPN settings.
#### 4.4.1 再次启动 3.3.1 下载的程序
#### 4.4.2 点击设置打开JRabel & XRebel,点击work offline,如下图
![image-20231130224201520](assets/image-20231130224201520.png)
#### 4.4.3 关闭 3.3.1 下载的程序重启项目,修改一个文件,等待几秒出现以下信息重新加载你修改的类信息则代表成功
![image-20231130224812254](assets/image-20231130224812254.png)