SpringMVC 解决 mybatis 属性名和字段名不一致
要解决的问题:属性名和字段名不一致方案二:使用结果集映射->ResultMap 【推荐】<resultMap id="test" type="User"> <!-- column是数据库表的列名 , property是对应实体类的属性名 --> <result column="pwd" property="password"/></resultMap> <select id="selectUserById" resultM
原创
2021-10-16 23:17:15 ·
412 阅读 ·
0 评论