在spring boot中打印mybaits执行的sql 在application.yml中增加配置,指定mapper文件所在的包,如: logging: level: io.prong.oauth.service.dao: trace # 改成你的mapper文件所在包路径