2007年12月5日 #
2007年11月21日 #
摘要: tencent://Message/?Uin=%num% 閱讀全文
2007年11月12日 #
摘要: eclispe想必大家都很熟悉了,一般來說,eclipse插件都是安裝在plugins目錄下。不過這樣一來,當安裝了許多插件之后,eclipse變的很大,最主要的是不便于更新和管理眾多插件。用links方式安裝eclipse插件,可以解決這個問題。 閱讀全文
摘要: 原文出處: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. 閱讀全文
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. 閱讀全文
摘要: 原文出處: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. 閱讀全文
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. 閱讀全文
摘要: 原文出處: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. 閱讀全文
This tutorial gives you an overview of how to use the debugging feature of eclipse to debug your web or Java projects. 閱讀全文
2007年11月11日 #
摘要: 在多用戶并發的環境下,通常是由不同的線程分別處理不同的客戶端請求。此時要在日志信息中區分出不同的客戶端,你可以為每一個線程生成一個Logger,從而從一堆日志信息中區分出哪些信息是屬于哪個線程的,但這種方式并不高效。Log4J巧妙地使用了Neil Harrison提出的“NDC(嵌套診斷環境)”機制來解決這個問題。 閱讀全文
摘要: 使用JUnit時,您主要都是透過繼承TestCase類別來撰寫測試案例,預設上您可以使用testXXX() 名稱來撰寫單元測試。
在測試一個單元方法時,有時您會需要給它一些物件作為運行時的資料,例如您撰寫下面這個測試案例: 閱讀全文
在測試一個單元方法時,有時您會需要給它一些物件作為運行時的資料,例如您撰寫下面這個測試案例: 閱讀全文
2007年11月10日 #
摘要: 一個經常引用的依靠于logging的參數是可以計算的花費。這是一個合理的概念,一個適度的應用程序可能產生成千上萬個日志請求。許多努力花在測量和調試logging的優化上。Log4j要求快速和彈性:速度最重要,彈性是其次。
用戶應該注意隨后的優化建議。 閱讀全文
用戶應該注意隨后的優化建議。 閱讀全文
摘要: 在Web 應用中,應該在哪兒對Log4J進行配置呢?首先要明確,Log4J必須在應用的其它代碼執行前完成初始化。因為Servlet 是在Web服務器啟動時立即裝入的,所以,在Web應用中一般使用一個專門的Servlet來完成Log4J的配置,并保證在web.xml的配置中,這個Servlet位于其它Servlet之前。下面是一個例子,代碼如下: 閱讀全文