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