如鵬網 大學生計算機學習社區

          CowNew開源團隊

          http://www.cownew.com 郵件請聯系 about521 at 163.com

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            363 隨筆 :: 2 文章 :: 808 評論 :: 0 Trackbacks

             在開發程序的時候熱加載是非常有幫助的,這能大大簡化我們開發調試的速度。在使用tapestry開發的時候,只要是啟動了調試模式,那么代碼的熱替換是自動被JVM支持的,也就是只要我們的tapestry運行在調試模式下,就可以實現java代碼的即時修改即時生效。但是tapestry的頁面文件(.page和.html模板)默認是無法實現熱加載的,每次修改頁面都必須重啟服務器,大大降低了開發速度。其實解決這個問題只要增加虛擬機參數就可以了,只要在虛擬機參數(注意不是應用參數)中加入:-Dorg.apache.tapestry.enable-reset-service=true -Dorg.apache.tapestry.disable-caching=true即可。這樣每次修改的時候tapestry就不會去緩存中取了,其中org.apache.tapestry.enable-reset-service的意思是:If not specified as "true", then the reset service will be non-functional. The reset service is used to force the running Tapestry application to discard all cached data (including templates, specifications, pooled objects and more). This must be explicitly enabled, and should only be used in development (in production, it is too easily exploited as a denial of service attack).

          Unlike most other configuration values, this must be specified as a JVM system property.

          posted on 2007-06-05 19:13 CowNew開源團隊 閱讀(430) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 赣榆县| 沅江市| 东方市| 汤原县| 清流县| 和田市| 司法| 商河县| 宁安市| 桦南县| 福贡县| 安吉县| 都江堰市| 青铜峡市| 鸡西市| 吉安县| 灵璧县| 台州市| 远安县| 来凤县| 孝昌县| 平和县| 喀喇沁旗| 七台河市| 葫芦岛市| 游戏| 社旗县| 鄂托克前旗| 清流县| 长春市| 泽库县| 霍山县| 桂平市| 河津市| 保山市| 赤城县| 安吉县| 远安县| 东源县| 双牌县| 武定县|