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