log4j入门(转)Log4j实在是很熟悉,几乎所有的Java项目都用它啊。但是我确一直没有搞明白。终于有一天我受不了了,定下心去看了一把文档,才两个小时,我终于搞明白了。一般情况下Log4j总是和Apache Commons-logging一起用的,我也就一起介绍吧。多了个东西不是更麻烦,而是更简...
分类:
其他好文 时间:
2015-09-02 17:12:06
阅读次数:
213
1,添加jar包, commons-logging-1.2.jar,log4j-1.2.17.jar 2,src下添加log4j.properties文件 log4j.rootLogger=DEBUG,?CONSOLE,S
log4j.addivity.org.apache=true
log4j.appender.CONSOLE=org.apache.log4j...
分类:
其他好文 时间:
2015-08-28 17:55:14
阅读次数:
225
1 import org.apache.commons.io.FileUtils; 2 import org.apache.commons.io.filefilter.*; 3 import org.apache.commons.logging.Log; 4 import org.a...
分类:
其他好文 时间:
2015-08-27 09:29:06
阅读次数:
146
Struts2应用的开发步骤导入必要的包通过MyEclipse对项目导入Struts2包,一般只需要导入core这个包就可以。如果要想手动导入,则需要将commons-logging,freemarker,ognl,struts2-core,xwork-core,commons-fileupload,jacassist,commons-long3这几个包复制到web-inf下的lib文件夹..
分类:
其他好文 时间:
2015-08-21 00:24:40
阅读次数:
166
不多说,直接加载源码:
需要的包文件:
commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
commons-logging-1.1.jar
freemarker-2.3.13.jar
log4j-1.2.17.jar
ognl-2.6.11.jar
struts2-core-2.1.6.jar
struts2-dojo-plugin-2....
分类:
Web程序 时间:
2015-08-21 00:20:33
阅读次数:
178
所需jar:commons-logging-1.1.3.jar、httpclient-4.3.1.jar、httpcore-4.3.jarpackage com.onlyou.microfinance.common.util;import java.security.KeyManagementExc...
分类:
Web程序 时间:
2015-08-20 18:45:56
阅读次数:
217
首先导入项目所需要的包,如下:dwr.jar,commons-logging-1.0.4.jar,版本可以调整1.web.xml dwr-invoker org.directwebremoting.servlet.DwrServlet debug true 1 dwr-invoker /dwr/.....
分类:
编程语言 时间:
2015-08-18 16:15:29
阅读次数:
116
所需jar:commons-logging-1.1.3.jar、httpclient-4.3.1.jar、httpcore-4.3.jarpackage com.ljq.test;import java.io.File;import java.io.FileOutputStream;import j...
分类:
Web程序 时间:
2015-08-17 15:18:05
阅读次数:
144
comonms-logging:http://archive.apache.org/dist/commons/logging/source/
分类:
编程语言 时间:
2015-08-14 01:14:29
阅读次数:
534
学习springMVC,我们来记录下第一个HelloWord的程序首先,我们组织需要的jar包
commons-logging-1.1.3.jar
spring-aop-4.1.7.RELEASE.jar
spring-beans-4.1.7.RELEASE.jar
spring-context-4.1.7.RELEASE.jar
spring-core-4.1.7.RELEASE.jar...
分类:
编程语言 时间:
2015-08-13 18:11:15
阅读次数:
171