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