SpringBoot Mybatis配置


mybatis:

mapper-locations: classpath:mapper/*.xml // mapper文件位置
type-aliases-package: com.xxx.model // 根据别名查找model位置
check-config-location: true // 运行时检查mapper是否存在
configuration:
map-underscore-to-camel-case: true // 将表的下划线列名匹配到驼峰式属性名
posted @ 2019-12-07 17:31  江渡一苇  阅读(162)  评论(0)    收藏  举报