springboot 各种日志打印
生活随笔
收集整理的這篇文章主要介紹了
springboot 各种日志打印
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.springboot打印sql語句
在application.properties文件中:
#開啟打印MyBatis sql日志輸出
logging.level.com.sws.platform.gis.dao=debug?
紅色部門修改為mappper(.java)文件路徑。
#打印sql、參數、查詢結果的 mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl總結
以上是生活随笔為你收集整理的springboot 各种日志打印的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 海外服务器有什么用途
- 下一篇: mysql的表分区