添加 JRabel配置使用
BIN
devops/热部署/jrebel/assets/24a92ee6d16820f3e3316512963d51a2.png
Normal file
After Width: | Height: | Size: 95 KiB |
BIN
devops/热部署/jrebel/assets/3ff8fa11a87697616bd11137a182cf7c.png
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
devops/热部署/jrebel/assets/8b3d42fab8fbd78779f1e6a1092f3fb6.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
devops/热部署/jrebel/assets/a4d185de35b56ff602f8b2a432c9128f.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
devops/热部署/jrebel/assets/image-20231130221753446.png
Normal file
After Width: | Height: | Size: 122 KiB |
BIN
devops/热部署/jrebel/assets/image-20231130222001511.png
Normal file
After Width: | Height: | Size: 35 KiB |
BIN
devops/热部署/jrebel/assets/image-20231130223329138.png
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
devops/热部署/jrebel/assets/image-20231130223534473.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
devops/热部署/jrebel/assets/image-20231130223614098.png
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
devops/热部署/jrebel/assets/image-20231130224201520.png
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
devops/热部署/jrebel/assets/image-20231130224812254.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
73
devops/热部署/jrebel/jrebel本地热部署破解.md
Normal 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.安装之后需要重启IDEA,JRebel插件会提示需要激活,点击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)
|