ITeye博客

eclipse jrebel热部署配置

Edision · 2015-03-19 17:21 · java web ide · Web前端 · Markdown

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

[java] view plaincopyprint?在CODE上查看代码片派生到我的代码片

  1. #############################################################
  2. JRebel 3.1.2a (201008121555)
  3. with Enterprise Add-On! (see http://jrebel.com/enterprise)
  4. (c) Copyright ZeroTurnaround OU, Estonia, Tartu.
  5. Over the last 1 days JRebel prevented
  6. at least 0 redeploys/restarts saving you about 0 hours.
  7. This product is licensed to www.cfsoft.com
  8. for up to 9999 developer seats on site.
  9. The following plugins are disabled at the moment:
  10. * EclipseLink Plugin (set -Drebel.eclipselink_plugin=true to enable)
  11. Reloads EntityManagerFactory when configuration changes
  12. * Log4j plugin (set -Drebel.log4j-plugin=true to enable)
  13. Reloads full configuration of log4j
  14. * Stripes plugin 1.0.11 (set -Drebel.stripes_plugin=true to enable)
  15. Adds reloading of Stripes ActionBeans.
  16. * TopLink Plugin (set -Drebel.toplink_plugin=true to enable)
  17. Reloads EntityManagerFactory when configuration changes
  18. * TopLink Spring Plugin (set -Drebel.toplink_spring_plugin=true to enable)
  19. Reloads SeesionFactory when configuration changes
  20. * WebObjects Plugin (set -Drebel.webobjects_plugin=true to enable)
  21. WebObjects JRebel Plugin
  22. #############################################################
  23. 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.

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。