Intellij热部署插件Jrebel安装详解

一 , 下载安装Jreble

1、在IDEA中一次点击 File->Settings->Plugins->Brows Repositories 
2、在搜索框中输入JRebel进行搜索         
3、找到JRebel for intellij             
4、install                 
5、安装好之后需要restart IDEA           

 

Intellij热部署插件Jrebel安装详解

二 , **Jrebel

JRebel并非免费的插件,需要**之后才能使用。

此时需要一个反向代理软件 ,  可根据需求更改版本(笔者使用的windows64 )

反向代理下载地址: 

https://github.com/ilanyu/ReverseProxy/releases/tag/v1.4 

可根据需求更改版本(手顺所提供为 windows64 )

下载好之后双击运行我们下载的反向代理程序

Intellij热部署插件Jrebel安装详解

在IDEA中一次点击 File->Settings->JRebel 并找到**界面

Intellij热部署插件Jrebel安装详解

选择JRebel activated中的 connect to online licensing service     
第一行输入 http://127.0.0.1:8888/d3545f42-7b88-4a77-a2da-5242c46d4bc2 
第二行输入正确的邮箱格式              
再点击以下change liense 按钮验证**  有些不是 change linese      

Intellij热部署插件Jrebel安装详解

点击 work offline

Intellij热部署插件Jrebel安装详解

相关设置 : 

设置项目自动编译

Intellij热部署插件Jrebel安装详解

设置 compiler.automake.allow.when.app.running         
ctrl+shift+A 或者 help->find action…打开           
搜索registry                     
找到 compiler.automake.allow.when.app.running 并✔         

Intellij热部署插件Jrebel安装详解

view ->tool windows ->jrebel,在需要热部署的项目上选中,。

这时候会在你的跟目录中生成一个rebel.xml文件,这个是jrebel的配置文件,需要是配置jrebel的监听目录的

Intellij热部署插件Jrebel安装详解