<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 閱讀(2639) 評論(2)  編輯  收藏 所屬分類: Eclipse Plugins
    主站蜘蛛池模板: 亚洲国产精品第一区二区| 丝袜熟女国偷自产中文字幕亚洲| 久久精品视频亚洲| 精品免费久久久久国产一区 | 四虎影视精品永久免费网站| 亚洲人成7777| 久久国内免费视频| 久久精品国产亚洲av麻豆蜜芽 | 亚洲国产AV无码一区二区三区 | 日韩精品内射视频免费观看 | 中文字幕免费视频| 亚洲成人动漫在线观看| 国内精品乱码卡1卡2卡3免费| 亚洲一区二区三区久久久久| 毛片免费视频观看| 亚洲成在人线aⅴ免费毛片| 国产网站在线免费观看| 小说区亚洲自拍另类| ZZIJZZIJ亚洲日本少妇JIZJIZ| 久久久久久av无码免费看大片| 久久精品国产亚洲麻豆| 18以下岁毛片在免费播放| 亚洲一区二区三区免费视频| 亚洲伊人久久大香线蕉| 永久免费AV无码网站在线观看| 男人j进女人p免费视频| 亚洲线精品一区二区三区影音先锋| 亚洲私人无码综合久久网| 又爽又黄无遮挡高清免费视频| 一区二区三区免费视频观看| 亚洲国产综合专区在线电影| 欧美好看的免费电影在线观看 | 亚洲色中文字幕在线播放| 亚洲AⅤ视频一区二区三区| 免费国产污网站在线观看| 亚洲另类小说图片| 四虎影视精品永久免费网站| 最近中文字幕大全免费版在线 | 久久亚洲日韩看片无码| 日本免费一区尤物| 久久er国产精品免费观看2|