yml的mybatis的sql查看;Mybatis+Springboot 控制台查看日志,Mybatis结合springboot打印日志

1.配置如图

文件为yml

1 mybatis:
2   mapper-locations: classpath:com/springboot/transaction/mapper/*.xml
3   configuration:
4     log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
View Code

打印效果:

原文地址:https://www.cnblogs.com/liuyangfirst/p/9279119.html