log4j.properties文件:
#Global logging configuration
log4j.rootLogger=ERROR,stdout,DATABASE
log4j.logger.java.sql=DEBUG
log4j.addivity.org.apache=true
#SqlMap logging configuration...
#log4j-logger.com.ibatis=DEBUG
#log4j.logger.com.ibatis.commmon.jdbc.SimpleDataSource=DEBUG
#log4j.logger.com.ibatis.common.jdbc.ScriptRunner=DEBUG
#log4j.logger.com.ibatis.sqlmap.engine.impl.SqlMapClientDelegate=DEBUG
#log4j.logger.java.sql.Connection=DEBUG
#log4j.logger.java.sql.Statement=DEBUG
#log4j.logger.java.sql.PreparedStatement=DEBUG
#log4j.logger.java.sql.ResultSet=DEBUG
#Console output...
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p %c [%t]-%m%n
#######################
# JDBC Appender
#######################
log4j.appender.DATABASE.Threshold=INFO
log4j.appender.DATABASE=org.apache.log4j.jdbc.JDBCAppender
#log4j.appender.DATABASE.BufferSize=10
log4j.appender.DATABASE.URL=jdbc:mysql://219.223.240.187:3306/virtual_human?useUnicode=true&characterEncoding=UTF8
log4j.appender.DATABASE.user=lxn
log4j.appender.DATABASE.password=lxn
log4j.appender.DATABASE.sql=INSERT INTO sys_log VALUES ('%d{yyyy-MM-dd HH:mm:ss}', '%t', '%p', '%l', '%m')
log4j.appender.DATABASE.layout=org.apache.log4j.PatternLayout
但是控制台说:找不到com.mysql.jdbc.Driver,什么时候能解决这个问题呀?