在application.yml中加入下面的这个就好了。 mybatis: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl