当数据库里的字段是下划线式命名,springboot的实体类是驼峰类命名,那么要开启驼峰命名转换,不然取到的值为null,
#开启驼峰命名转换
mybatis:
configuration:
map-underscore-to-camel-case: true
当数据库里的字段是下划线式命名,springboot的实体类是驼峰类命名,那么要开启驼峰命名转换,不然取到的值为null,
#开启驼峰命名转换
mybatis:
configuration:
map-underscore-to-camel-case: true