SpringBoot+MyBatis,显示SQL方式

时间:2019-12-02 15:38:45   收藏:0   阅读:70

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

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

新增这2个就可以了

原文:https://www.cnblogs.com/TravisGrady/p/11970528.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!