摘要: 因为业务的需要,要将每次操作的数据库语句写到一个表中,才有了这篇文章。在网上找了很多的资料,终于找到了p6spy这个东东。下面开始1.找到p6spy 的jar包 --- p6spy.jar 添加到项目的lib下2.将 p6spy.properties 这个文件也加到lib下3.修改 p6spy.properties 文件,启用你所用的 realdriver,如对于 oracle 是 realdrive=oraclejdbc.driver.OacleDriver。4.需要log4j的jar包 添加到项目的lib下面5.修改 hibernate.cfg.xml文件 将<property na 阅读全文
posted @ 2009-08-22 21:55 java程序代码 阅读(176) 评论(0) 推荐(0) 编辑
摘要: Browse Files for p6spy File/Folder Name Platform Size Date Downloads Notes/Subscribe Newest Files p6spy.wa... 阅读全文
posted @ 2009-08-22 21:52 java程序代码 阅读(397) 评论(0) 推荐(0) 编辑
摘要: log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).log4j:WARN Please initialize the log4j system properly.Exception in thread "main" org.hibernate.exception.JDBCConnectionException: Cannot open connectionat org.hibernate.exception.SQLStateConverter.convert(SQ 阅读全文
posted @ 2009-08-22 16:27 java程序代码 阅读(171) 评论(0) 推荐(0) 编辑