yml文件配置了
mybatis:
mapper-locations: classpath:mapper/**/*.xml
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
控制台会打印:

和sql语句执行详情。
本文介绍了如何通过YML文件配置Mybatis,包括mapper文件路径和使用StdOutImpl的日志输出方式,展示了如何在控制台详细查看SQL执行情况。
yml文件配置了
mybatis:
mapper-locations: classpath:mapper/**/*.xml
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
控制台会打印:

和sql语句执行详情。

被折叠的 条评论
为什么被折叠?