打印MyBatis执行的Sql语句
在bootstrap.properties中添加:
logging.level.(.......dao.mapper)=debug
DEBUG级别日志:打印Sql语句
logging.level.(.......dao.mapper)=TRACE
TRACE级别日志:打印Sql语句及Sql查询结果
logging.level.(.......dao.mapper)=TRACE
======等同于=======
logging.level.(.......dao.mapper)=debug
mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
打印sql语句及sql查询结果