
configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl 请教师父们 想要 @Test 测试时也输出 sql 还要其他的配置吗
1 Artemisr 2019 年 11 月 15 日 logback 的配置这样写 logging: level: cn.demo.business: info cn.demo.business 代表你 mapper 层的包名,需要看日志就把 info 改成 debug |
2 m1ch3ng 2019 年 11 月 15 日 可以用 mybatis log plugin 插件 |