码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2018-07-08 10:44:15      阅读:419      评论:0      收藏:0      [点我收藏+]

标签:boot   stdout   cat   color   out   log   one   lap   sed   

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

打印效果:

技术分享图片

 

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

标签:boot   stdout   cat   color   out   log   one   lap   sed   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!