四、mybatis引入log4j查看实际的sql语句

引入log4j查看sql语句



  log4j
  log4j
  1.2.17

log4j.properties

# Global logging configuration
log4j.rootLogger=error,stdout

# MyBatis logging configuration...
log4j.logger.com.text.mapper=DEBUG
# Console output...
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n

你可能感兴趣的:(四、mybatis引入log4j查看实际的sql语句)