在網上也找了很多方式,經過測試,對我來說有效的一種 logging: level: com.threefivework.mymall.dao.mapper: DEBUG //包路徑為mapper檔案包路徑 重新開機即可