Spring Boot 整合MaBatis如何在控制檯打印執行的SQL語句

第一種在Spring Boot 的配置文件application.yml中加入 configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl 或者加入 logging: level: com.XXX.Mapper: debug (紅色部分爲Dao層的包名,注意不是XML文件的包名) 兩個任意一種
相關文章
相關標籤/搜索