Skip to content

SpringBoot下MyBatis配置

yaml
mybatis:
  type-aliases-package: org.xxx.xxx.domain 
  mapper-locations: classpath:mapper/*.xml
  configuration:
    map-underscore-to-camel-case: true #开启驼峰命名法
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #控制台sql打印

文章来源于自己总结和网络转载,内容如有任何问题,请大佬斧正!联系我