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

时间:2024-07-22 20:36:44

1.配置如图

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

文件为yml

 mybatis:
mapper-locations: classpath:com/springboot/transaction/mapper/*.xml
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

打印效果:

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