java mybatis使用 设置resultType查询对象字段为null

使用resultType返回值类对象中不能使用驼峰命名法,不能将数据库中的下划线 _ 转化为驼峰

比如数据库中存储字段为 user_name,但是对象中将user_name 转为 userName, userName值为null,需使用user_name

猜你喜欢

转载自www.cnblogs.com/wanglg629/p/9255809.html