SpringBoot+MyBatis,显示SQL方式

在 application.yml 文件中新增配置:

mybatis:
  mapper-locations: classpath:mapper/**.xml
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
logging:
  level: debug

新增这2个就可以了

posted @ 2019-12-02 14:48  余总出去浪  阅读(2026)  评论(0编辑  收藏  举报