`

eclipse jrebel热部署配置

 
阅读更多

 

 

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配置成功.

 

Java代码 复制代码 收藏代码
  1. #############################################################   
  2.   
  3.  JRebel 3.1.2a (201008121555)   
  4.    with Enterprise Add-On! (see http://jrebel.com/enterprise)  
  5.  (c) Copyright ZeroTurnaround OU, Estonia, Tartu.   
  6.   
  7.  Over the last 1 days JRebel prevented    
  8.  at least 0 redeploys/restarts saving you about 0 hours.   
  9.   
  10.  This product is licensed to www.cfsoft.com   
  11.  for up to 9999 developer seats on site.    
  12.   
  13.  The following plugins are disabled at the moment:    
  14.  * EclipseLink Plugin (set -Drebel.eclipselink_plugin=true to enable)   
  15. Reloads EntityManagerFactory when configuration changes   
  16.  * Log4j plugin (set -Drebel.log4j-plugin=true to enable)   
  17. Reloads full configuration of log4j   
  18.  * Stripes plugin 1.0.11 (set -Drebel.stripes_plugin=true to enable)   
  19. Adds reloading of Stripes ActionBeans.   
  20.  * TopLink Plugin (set -Drebel.toplink_plugin=true to enable)   
  21. Reloads EntityManagerFactory when configuration changes   
  22.  * TopLink Spring Plugin (set -Drebel.toplink_spring_plugin=true to enable)   
  23. Reloads SeesionFactory when configuration changes   
  24.  * WebObjects Plugin (set -Drebel.webobjects_plugin=true to enable)   
  25. WebObjects JRebel Plugin   
  26.   
  27. #############################################################   
  28.   
  29.   
  30.   
  31. JRebel: Directory 'E:\workspace\fileManager1\WebRoot\WEB-INF\classes' will be monitored for class changes.  
  1. #############################################################  
  2.   
  3.  JRebel 3.1.2a (201008121555)  
  4.    with Enterprise Add-On! (see http://jrebel.com/enterprise)  
  5.  (c) Copyright ZeroTurnaround OU, Estonia, Tartu.  
  6.   
  7.  Over the last 1 days JRebel prevented   
  8.  at least 0 redeploys/restarts saving you about 0 hours.  
  9.   
  10.  This product is licensed to www.cfsoft.com  
  11.  for up to 9999 developer seats on site.   
  12.   
  13.  The following plugins are disabled at the moment:   
  14.  * EclipseLink Plugin (set -Drebel.eclipselink_plugin=true to enable)  
  15. Reloads EntityManagerFactory when configuration changes  
  16.  * Log4j plugin (set -Drebel.log4j-plugin=true to enable)  
  17. Reloads full configuration of log4j  
  18.  * Stripes plugin 1.0.11 (set -Drebel.stripes_plugin=true to enable)  
  19. Adds reloading of Stripes ActionBeans.  
  20.  * TopLink Plugin (set -Drebel.toplink_plugin=true to enable)  
  21. Reloads EntityManagerFactory when configuration changes  
  22.  * TopLink Spring Plugin (set -Drebel.toplink_spring_plugin=true to enable)  
  23. Reloads SeesionFactory when configuration changes  
  24.  * WebObjects Plugin (set -Drebel.webobjects_plugin=true to enable)  
  25. WebObjects JRebel Plugin  
  26.   
  27. #############################################################  
  28.   
  29.   
  30.   
  31. JRebel: Directory 'E:\workspace\fileManager1\WebRoot\WEB-INF\classes' will be monitored for class changes.  
#############################################################

 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.

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics