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

打印效果:

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM