73 lines
2.7 KiB
Markdown
73 lines
2.7 KiB
Markdown
![]() |
# JRebel本地热部署配置&破解
|
|||
|
|
|||
|
## 1.介绍
|
|||
|
|
|||
|
JRebel是一款JVM插件,它使得Java代码修改后不用重启项目,立即生效。IDEA上原生是不支持热部署的,一般更新了 Java 文件后要手动重启 Tomcat 服务器,修改才能生效;所以推荐使用 JRebel 插件进行热部署。
|
|||
|
|
|||
|
## 2.JRebel安装
|
|||
|
|
|||
|
### 2.1.打开IDEA,选择File—>Settings—>Plugins—>在右侧选择Marketplace,
|
|||
|
|
|||
|
### 2.2.在搜索框输入jrebel—>选择搜索结果—>点击Install(安装),如下图。
|
|||
|
|
|||
|

|
|||
|
|
|||
|
## 3.JRebel激活
|
|||
|
|
|||
|
### 3.1.安装之后需要重启IDEA,JRebel插件会提示需要激活,点击Jrebel Activation进行激活。
|
|||
|
|
|||
|

|
|||
|
|
|||
|
### 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 选中我同意
|
|||
|
|
|||
|

|
|||
|
|
|||
|
### 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)自己机器系统相对应的工具,如图:
|
|||
|
|
|||
|

|
|||
|
|
|||
|
#### 3.3.2 下载好了后,进行安装打开(激活插件时,程序保持启动,激活成功后可关闭),如图:
|
|||
|
|
|||
|

|
|||
|
|
|||
|
#### 3.3.3 点击Change license按钮再次进行提交
|
|||
|
|
|||
|
#### 3.3.4 成功
|
|||
|
|
|||
|

|
|||
|
|
|||
|
## 4.开启JRabel
|
|||
|
|
|||
|
### 4.1.点击左侧按钮打开面板
|
|||
|
|
|||
|
### 4.2.选择要开启JRabel的项目
|
|||
|
|
|||
|

|
|||
|
|
|||
|
### 4.3.使用JRabel启动项目
|
|||
|
|
|||
|

|
|||
|
|
|||
|

|
|||
|
|
|||
|
### 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,如下图
|
|||
|
|
|||
|

|
|||
|
|
|||
|
#### 4.4.3 关闭 3.3.1 下载的程序重启项目,修改一个文件,等待几秒出现以下信息重新加载你修改的类信息则代表成功
|
|||
|
|
|||
|

|