朱杰兵blog

          jonhney'blog
          posts - 140, comments - 1, trackbacks - 0, articles - 0

          一,JRebel 插件 獲取與安裝

          直接在 IDEA 中操作獲取 JRebel 插件


          Paste_Image.png

          Paste_Image.png


          安裝完成,記得重啟 IDEA 使剛才安裝的插件生效。

          二,激活


          Paste_Image.png

          Paste_Image.png


          http://idea.lanyus.com/ilanyu
          lanyu19950316@gmail.com
          在此感謝 IDEA開源社區(qū) http://www.ideajava.org/


          Paste_Image.png

          Paste_Image.png

          三:使用


          Paste_Image.png

          Paste_Image.png

          Paste_Image.png

          Paste_Image.png

          配置完畢!


          Paste_Image.png

          啟動項目之后
          任意修改 java 代碼,并 ctrl + s 保存 ,update classes and resources 一下。





          當(dāng)一個項目使用maven多模塊開發(fā)時通過上面的配置, 只能自動加載webapp所在的模塊, 若想改動其他模塊的代碼也要自動加載, 需在項目的根(父)pom.xml中加入下面的配置: 
          這里寫圖片描述

           <plugin>     <groupId>org.zeroturnaround</groupId>     <artifactId>jrebel-maven-plugin</artifactId>     <version>1.1.5</version>     <configuration>         <addResourcesDirToRebelXml>true</addResourcesDirToRebelXml>         <alwaysGenerate>true</alwaysGenerate>         <showGenerated>true</showGenerated>     </configuration>     <executions>         <execution>             <id>generate-rebel-xml</id>             <phase>process-resources</phase>             <goals>                 <goal>generate</goal>             </goals>         </execution>     </executions> </plugin>
          • 1
          • 2
          • 3
          • 4
          • 5
          • 6
          • 7
          • 8
          • 9
          • 10
          • 11
          • 12
          • 13
          • 14
          • 15
          • 16
          • 17
          • 18
          • 19
          • 20
          • 1
          • 2
          • 3
          • 4
          • 5
          • 6
          • 7
          • 8
          • 9
          • 10
          • 11
          • 12
          • 13
          • 14
          • 15
          • 16
          • 17
          • 18
          • 19
          • 20

          運行mvn jrebel:generate, 生成rebel.xml文件.

          這里寫圖片描述



          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 揭阳市| 从化市| 延长县| 乌拉特前旗| 建宁县| 峨边| 九寨沟县| 九江县| 长宁县| 临颍县| 曲水县| 佛山市| 工布江达县| 阳泉市| 金溪县| 嘉祥县| 揭阳市| 深圳市| 霍山县| 三明市| 高邑县| 武山县| 通渭县| 洪湖市| 南阳市| 门头沟区| 奎屯市| 吉隆县| 柳林县| 阿尔山市| 曲麻莱县| 云安县| 务川| 芦溪县| 监利县| 望谟县| 巩留县| 丰台区| 瑞安市| 万州区| 隆昌县|