idea+Springboot在控制台打印sql语句 logging: level: com.XXX.Mapper: debug (红色部分为Dao层的包名,注意不是XML文件的包名) Preparing后面跟的为SQL语句,Parameters后面跟的是参数,参数顺序与 ? 顺序一致。