mybatis+spring 框架中配置日志中显示sql语句

  • r5_899306
    了解作者
  • 9KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-23 02:13
    上传日期
mybatis+spring 框架中配置日志中显示sql语句
mybatils打印sql.zip
  • mybatils打印sql
  • slf4j-log4j12-1.6.1.jar
    9.5KB
  • log4j.properties
    1.1KB
内容介绍
# Output pattern : date [thread] priority category - message log4j.rootLogger=DEBUG, console, logFile #Console log4j.appender.console=org.apache.log4j.ConsoleAppender log4j.appender.console.layout=org.apache.log4j.PatternLayout log4j.appender.console.layout.ConversionPattern=%d [%p] %l - %m%n #RollingFile log4j.appender.logFile=org.apache.log4j.DailyRollingFileAppender log4j.appender.logFile.File=../logs/adnetwork.log log4j.appender.logFile.layout=org.apache.log4j.PatternLayout log4j.appender.logFile.layout.ConversionPattern=%d [%p] %l - %m%n # SqlMap logging configuration... log4j.logger.com.ibatis=debug log4j.logger.com.ibatis.db=debug log4j.logger.com.ibatis.common.jdbc.SimpleDataSource=debug log4j.logger.com.ibatis.sqlmap.engine.cache.CacheModel=debug log4j.logger.com.ibatis.sqlmap.engine.impl.SqlMapClientImpl=debug log4j.logger.com.ibatis.sqlmap.engine.builder.xml.SqlMapParser=debug log4j.logger.com.ibatis.common.util.StopWatch=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
评论
    相关推荐