<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 156,  comments - 601,  trackbacks - 0

    本文以javarebel-2.0 free版本為例,包括如何配置在使用Eclipse插件開發tomcat應用時,實現即時重載java class更改。


    1. 首先下載JavaRebel, 官方下載(Free版本) , 下載后解壓到本地目錄,例如 D:/javarebel.jar

    2. 因為JavaRebel在不同的jdk版本,配置也不同,本例以JDK5+以上版本為例

       在Eclipse的tomcat插件中,配置 JavaReble, 如圖



    在Jvm配置中加入下面的設置
    -noverify
    -javaagent:D:/javarebel.jar
    -Drebel.dirs
    =D:\project\WEB-INF\classes
    -Drebel.spring_plugin
    =true


    說明:
      -Drebel.dirs 指定要監控的 編譯后的java 文件目錄
      -Drebel.spring_plugin 表示對Spring的支持,默認是false

    配置完上面后,還需要關閉tomcat的應用程序的reloadable設置

    <Context path="/hello"  reloadable="false" docBase="D:\project"  />

    接下來,可以啟動Tomcat服務了,如果配置正確,啟動服務后,會有以下提示



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

     ZeroTurnaround JavaRebel 
    2.0 (200903241906)
     (c) Copyright Webmedia
    , Ltd, 2007-2009. All rights reserved.

     You are running JavaRebel evaluation license.
     You have 
    30 days until the license expires. 

     You will see this notification until you obtain a 
     full license for your installation. 
                                                              
     Visit www.javarebel.com for instructions on obtaining    
     a full license. If you wish to continue your evaluation  
     please e-mail to support@zeroturnaround.com.             
                                                              
     If you think you should not see this message contact     
     support@zeroturnaround.com or check that you have your   
     license file in the same directory as the JAR file.      
                                                              
    #############################################################



    JavaRebel: Directory 'D:\develop\WEB-INF\classes' will be monitored for class changes.

    =============================== [JavaRebel Spring Framework Plugin] ===============================
    Plugins are contributed by third party and can cause compatibility problems.
    If you have any troubles set -Drebel.spring_plugin=false to disable it.
    ------------------------------------------------------------------------------------------
    Description: Supports adding new beans and adding new bean dependencies using
    annotations or XML. Singletons will be reconfigured after the change. It also
    supports adding or changing Spring MVC controllers or handlers.
    =============================== [/JavaRebel Spring Framework Plugin] ==============================


    如果出上以上提示,則表示JavaRebel已經配置成功。


    接下來大家可以在Eclipse中修改代碼,進行編譯進行測試。
    如果Eclipse提示, 則直接關接不理它即可,你發現你修改后的 class文件已經被jvm加載了。






    Good Luck!
    Yours Matthew!





    posted on 2009-04-02 11:58 x.matthew 閱讀(2640) 評論(2)  編輯  收藏 所屬分類: Eclipse Plugins
    主站蜘蛛池模板: 久久亚洲AV成人无码国产最大| 永久看日本大片免费35分钟| 亚洲六月丁香婷婷综合| 在线观看亚洲精品福利片| 免费观看理论片毛片| 97精品免费视频| 日韩精品无码免费专区午夜| 亚洲av永久无码精品秋霞电影秋 | 亚洲精品无码高潮喷水在线| 国内精品免费视频自在线| 久久久久国产精品免费网站| 成人久久久观看免费毛片| 亚洲色欲色欲www在线播放| 亚洲日韩乱码中文无码蜜桃臀| 久久亚洲精品视频| 亚洲人成色77777| 久久亚洲中文字幕精品一区四| 国产大片51精品免费观看| 成人免费无码大片a毛片| 在线精品一卡乱码免费| 亚洲一区免费视频| 18禁止看的免费污网站| 最近中文字幕完整版免费高清| 午夜无码A级毛片免费视频| 最近的2019免费中文字幕| 两个人看的www免费视频中文| 国产99久久久国产精免费| 一级毛片大全免费播放下载| 日本特黄特色AAA大片免费| 黄页网址在线免费观看 | 国产免费av一区二区三区| 永久免费看bbb| 国产日产成人免费视频在线观看| 成年性羞羞视频免费观看无限| 97在线线免费观看视频在线观看| 91黑丝国产线观看免费| 无码国产精品一区二区免费| 无码国产精品一区二区免费式直播| 亚洲一区免费在线观看| 色窝窝免费一区二区三区| 一个人看的www在线观看免费|