实体类名称为驼峰式

数据库名称存在下划线

查询时,带下划线的字段为null
Mybatis名称自动转换驼峰没有生效
按理说这个功能应该是默认实现的,但是没有生效只能手动配置下
通过configuration.map-underscore-to-camel-case: true配置
- mybatis-plus:
- global-config:
- db-config:
- id-type: 0
- table-prefix: t_
- table-underline: false
- configuration:
- map-underscore-to-camel-case: true