`
KuangYeYaZi
  • 浏览: 52670 次
文章分类
社区版块
存档分类
最新评论

Eclipse 开发利器 Jrebel热部署配置

阅读更多

首先安装好Jrebel插件之后(下载地址是:http://update.zeroturnaround.com/update-site-archive/

,可以点此处下载),下面以jrebel 6.0.0版为例:

点击eclipse菜单的Windows--> show view--> other--> server--> servers.双击你的Server配置项

点击“ Open launch configuration”。如下图:



 在VM arguments选框中加入参数:

-noverify -javaagent:D:\jrebel-3.1.2a\jrebel.jar
-Drebel.spring_plugin=true 
-Drebel.struts2-plugin=true

//可以不加

-Drebel.dirs=E:\workspace\fileManager1\WebRoot\WEB-INF\classes

 

如下图:



 然后点“OK”后,选取某个项目,启动server,如下图:

 

 之后在console控制台中,看见下列文字,则表明jrebel配置成功.

#############################################################

 JRebel 3.1.2a (201008121555)
   with Enterprise Add-On! (see http://jrebel.com/enterprise)
 (c) Copyright ZeroTurnaround OU, Estonia, Tartu.

 Over the last 1 days JRebel prevented 
 at least 0 redeploys/restarts saving you about 0 hours.

 This product is licensed to www.cfsoft.com
 for up to 9999 developer seats on site. 

 The following plugins are disabled at the moment: 
 * EclipseLink Plugin (set -Drebel.eclipselink_plugin=true to enable)
Reloads EntityManagerFactory when configuration changes
 * Log4j plugin (set -Drebel.log4j-plugin=true to enable)
Reloads full configuration of log4j
 * Stripes plugin 1.0.11 (set -Drebel.stripes_plugin=true to enable)
Adds reloading of Stripes ActionBeans.
 * TopLink Plugin (set -Drebel.toplink_plugin=true to enable)
Reloads EntityManagerFactory when configuration changes
 * TopLink Spring Plugin (set -Drebel.toplink_spring_plugin=true to enable)
Reloads SeesionFactory when configuration changes
 * WebObjects Plugin (set -Drebel.webobjects_plugin=true to enable)
WebObjects JRebel Plugin

#############################################################



JRebel: Directory 'E:\workspace\fileManager1\WebRoot\WEB-INF\classes' will be monitored for class changes.

 整理来自:http://darkranger.iteye.com/blog/796890#

 

附上jrebel 6.0.0的破解包:

 

  • 大小: 7.9 KB
  • 大小: 28.8 KB
  • 大小: 16.6 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics