欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

IntelliJ IDEA熱部署插件JRebel2018安裝激活破解及配置教程(附下載)

  發(fā)布時間:2018-08-02 17:32:59   作者:佚名   我要評論
JRebel 2018破解是一款Java EE開發(fā)工具,可快速實現(xiàn)熱部署,節(jié)省了大量重啟時間,提高了個人開發(fā)效率,這里提供最新JRebel 2018.1.5破解版的安裝激活教程,附激活包下載

在 Java Web 開發(fā)中, 一般更新了 Java 文件后要手動重啟Tomcat 服務器,才能生效,浪費不少生命啊,自從有了JRebel 這神器的出現(xiàn),不論是更新class 類還是更新Spring 配置文件都能做到立馬生效,大大提高開發(fā)效率。



JRebel 安裝

JRebel 的安裝方法有兩種, 一種是直接在 Tomcat 啟動參數(shù)上面加上 JRebel 的參數(shù), 另外一種是以插件的形式裝到 IntelliJ IDEA 上, 比較推薦后者。

第一種安裝方法:在 Tomcat 啟動參數(shù)上加參數(shù)

首先先介紹第一種安裝方法, 先在硬盤某個位置把 JRebel 解壓出來

然后配置 IntelliJ IDEA 的 Tomcat

enter description here

點 + 號選擇 Tomcat Server -> Local

enter description here

默認顯示如圖

enter description here

幾個關鍵的地方需要注意的, 就是首先要選擇 Deployment 這個選項卡

enter description here

選擇自己的項目, 建議選擇帶 exploded, 這個相當于改 Tomcat 的 CATALINA_HOME, 效率比較高

enter description here

選擇好后, 刪掉默認的Make, 提高效率

enter description here

接下來返回 Server 選項卡, 會發(fā)現(xiàn)多了一項 On frame deactivation, 如果你剛才沒有配置 Deployment 選項卡的話的這項是不會出現(xiàn)的

按如圖所示的來配置, 特別需要注意的是 On 'Update' action 和On frame deactivation 這兩項目一定要選擇 Update classes and resources, 否則類修改熱部署不生效, 或者第三方模版框架例如 Freemarker 熱部署不生效

enter description here

接下來就是很關鍵的需要引入 JRebel 的地方了, 在 VM options 的最右邊有個箭頭, 點進去

enter description here

Windows 輸入:

-noverify-agentpath:D:/dev_env/jrebel/jrebel_running/lib/jrebel64.dll

enter description here

Linux 用這個:

-agentpath:/dev_env/jrebel/jrebel_running/lib/libjrebel64.so

enter description here

Mac OS 用這個:

-agentpath:/dev_env/jrebel/jrebel_running/lib/libjrebel64.dylib

enter description here

配置完成, 直接啟動 Tomcat 即可, 不過此方法麻煩, 每次新建項目都要從新配置

第二種安裝方法:使用 IntelliJ IDEA 插件

接下來介紹使用 IntelliJ IDEA 插件的方式啟動 JRebel

首先是安裝 JRebel 的插件, 安裝方法和其他插件安裝方法一樣, 不過這里不采用在線安裝, 直接選擇本地安裝, 直接選擇插件安裝即可

enter description here

安裝好后在設置里面會多出一項 JRebel 的配置

查看一下插件是否有效

enter description here

綠色的 VALID 表示是有效的

在原來運行項目的按鈕邊上會多出兩個綠色的按鈕, 如圖, 前面那個是 Run, 后面那個是 Debug

enter description here

自定義容器啟動

配置 Tomcat 的方法和直接上面說的直接調(diào)用配置方法一樣, 同樣需要注意的是 On 'Update' action 和 On frame deactivation 這兩項目一定要選擇 Update classes and resources, 唯一不同的是 VM options 這項不需要填, 放空就好接下來直接啟動項目, 一般選擇后面那個 Debug 按鈕

enter description here

看到 Log 有 JRebel 輸出的版本信息, 沒有報錯就是表示成功執(zhí)行了, 隨便改一個類試試吧

Maven 或 Gradle 啟動

打開 JRebel Panel 窗口,然后勾選項目或模塊即可,這時插件會在 src/main/resources 目錄下生成 rebel.xml 文件,這里面指定了插件檢測熱部署文件夾的路徑

enter description here

enter description here

然后在 Maven projects 或 Gradle projects 窗口,右鍵 Task 使用 JRebel 啟動

enter description here

啟動之后更新資源重新編譯(Ctrl + Shift + F9)即可

JRebel 官網(wǎng)有免費激活服務,到官網(wǎng)注冊領取,請支持正版:

官網(wǎng)注冊,注冊完就會顯示一串密鑰了:https://zeroturnaround.com/software/jrebel/trial/

激活包使用

安裝完畢后解壓jrebel2018.1.5激活集合包.rar,用解壓出來的文件下對應時間的.jrebel包替換本地“C:\Users\username\.jrebel”文件夾,重啟即可
這里破解文件提供了21份,可以使用到2029年。每半年更新一下“C:\Users\username\.jrebel”即可

相關文章

最新評論