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

打印效果:

 

posted @ 2018-07-08 07:58  北极的大企鹅  阅读(4775)  评论(0编辑  收藏  举报
阅读 - 79万