aldream

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            1 Posts :: 10 Stories :: 1 Comments :: 0 Trackbacks

          2007年12月5日 #

          posted @ 2007-12-05 23:22 aldream 閱讀(180) | 評論 (0)編輯 收藏

          2007年11月21日 #

               摘要: tencent://Message/?Uin=%num%  閱讀全文
          posted @ 2007-11-21 15:52 aldream 閱讀(821) | 評論 (1)編輯 收藏

          2007年11月12日 #

               摘要: eclispe想必大家都很熟悉了,一般來說,eclipse插件都是安裝在plugins目錄下。不過這樣一來,當安裝了許多插件之后,eclipse變的很大,最主要的是不便于更新和管理眾多插件。用links方式安裝eclipse插件,可以解決這個問題。  閱讀全文
          posted @ 2007-11-12 18:19 aldream 閱讀(186) | 評論 (0)編輯 收藏

               摘要: 原文出處:http://www.laliluna.de/download/log4j-tutorial-en.pdf

          This tutorial explains how to set up log4j with email, files and stdout. It compares XML to properties configuration files, shows how to change LogLevels for a running application. Furthermore, we explain best practices on logging and exception handling.  閱讀全文
          posted @ 2007-11-12 15:17 aldream 閱讀(829) | 評論 (0)編輯 收藏

               摘要: 原文出處:http://www.laliluna.de/assets/tutorials/junit-testing-en.pdf

          JUnit is a simple Java testing framework to write tests for you Java application. This tutorial gives you an overview of the features of JUnit and shows a little example how you can write tests for your Java application.  閱讀全文
          posted @ 2007-11-12 15:10 aldream 閱讀(770) | 評論 (0)編輯 收藏

               摘要: 原文出處:http://www.laliluna.de/assets/tutorials/debugging-jsp-java-tutorial-en.pdf

          This tutorial gives you an overview of how to use the debugging feature of eclipse to debug your web or Java projects.  閱讀全文
          posted @ 2007-11-12 14:53 aldream 閱讀(1177) | 評論 (0)編輯 收藏

          2007年11月11日 #

               摘要: 在多用戶并發的環境下,通常是由不同的線程分別處理不同的客戶端請求。此時要在日志信息中區分出不同的客戶端,你可以為每一個線程生成一個Logger,從而從一堆日志信息中區分出哪些信息是屬于哪個線程的,但這種方式并不高效。Log4J巧妙地使用了Neil Harrison提出的“NDC(嵌套診斷環境)”機制來解決這個問題。  閱讀全文
          posted @ 2007-11-11 14:51 aldream 閱讀(747) | 評論 (0)編輯 收藏

               摘要: 使用JUnit時,您主要都是透過繼承TestCase類別來撰寫測試案例,預設上您可以使用testXXX() 名稱來撰寫單元測試。

          在測試一個單元方法時,有時您會需要給它一些物件作為運行時的資料,例如您撰寫下面這個測試案例:  閱讀全文
          posted @ 2007-11-11 00:55 aldream 閱讀(596) | 評論 (0)編輯 收藏

          2007年11月10日 #

               摘要: 一個經常引用的依靠于logging的參數是可以計算的花費。這是一個合理的概念,一個適度的應用程序可能產生成千上萬個日志請求。許多努力花在測量和調試logging的優化上。Log4j要求快速和彈性:速度最重要,彈性是其次。
          用戶應該注意隨后的優化建議。  閱讀全文
          posted @ 2007-11-10 23:31 aldream 閱讀(652) | 評論 (0)編輯 收藏

               摘要: 在Web 應用中,應該在哪兒對Log4J進行配置呢?首先要明確,Log4J必須在應用的其它代碼執行前完成初始化。因為Servlet 是在Web服務器啟動時立即裝入的,所以,在Web應用中一般使用一個專門的Servlet來完成Log4J的配置,并保證在web.xml的配置中,這個Servlet位于其它Servlet之前。下面是一個例子,代碼如下:  閱讀全文
          posted @ 2007-11-10 02:06 aldream 閱讀(1136) | 評論 (0)編輯 收藏

          列出全部內容  
          主站蜘蛛池模板: 武宁县| 庆城县| 南华县| 繁峙县| 大同市| 丹巴县| 东丰县| 崇左市| 海口市| 垫江县| 达日县| 都兰县| 拉萨市| 运城市| 保定市| 辰溪县| 永城市| 武宁县| 瑞安市| 怀仁县| 浪卡子县| 雅江县| 德清县| 宁夏| 错那县| 大姚县| 定襄县| 兴仁县| 如东县| 定西市| 肥乡县| 灵宝市| 博客| 扬中市| 宜宾市| 西藏| 抚宁县| 伊宁县| 普陀区| 宝清县| 兴和县|