创建WebProject之后先把mybatis-3.2.2.zip里的mybatis-3.2.2.jar包和lib里的asm-3.3.1.jar、cglib-2.2.2.jar、commons-logging-1.1.1.jar、javassist-3.17.1-GA.jar、log4j-1.2.1...
分类:
其他好文 时间:
2014-11-22 10:26:59
阅读次数:
350
今天想研究一下log4j的代码,打开log4j的文件包,发现了porn.xml。哦,估计这是一个maven项目。好!于是我就开始装maven了。 我首先是在maven的官网上下载的maven的安装包,接着解压。OK,现在轮到配置.bash_pro...
分类:
其他好文 时间:
2014-11-21 22:02:04
阅读次数:
131
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:44:59
阅读次数:
230
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:44:20
阅读次数:
288
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:43:13
阅读次数:
205
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:42:59
阅读次数:
324
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:42:40
阅读次数:
205
log4j:ERROR setFile(null,true) call failed.java.io.FileNotFoundException: /opt/logs/log.log (没有那个文件或目录) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.ja...
分类:
其他好文 时间:
2014-11-21 18:41:13
阅读次数:
240
1、使用dataSource,填写对应的URL username 和password就可以了! <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init" destroy-method="close">
<!-- 基本属性 ...
分类:
数据库 时间:
2014-11-21 16:46:36
阅读次数:
235
在hibernate使用的日志标准都为slf,slf可以看作为它的接口,因此需要找到它的实例,为我们做日志。我们选择使用log4j为实例。1、为防止冲突,先将slf4j-nop的jar包(它也是slf的一个实例)去除2、加入log4j的jar包。3、加入转换包slf4j-log4j4、src下假如log4j.properties配置..
分类:
Web程序 时间:
2014-11-21 16:40:25
阅读次数:
219