Mybatis 默认实体属性名称和数据库字段一一对应
既 数据库字段 user_name
实体属性字段 也必须是user_name
但java一般采用驼峰命名 userName
那么mybatis 为迎合java 特设置这个参数 map-underscore-to-camel-case : true
开启驼峰功能,使得user_name==userName
mybatis-plus:
configuration:
map-underscore-to-camel-case: true