标签 · MyBatis

← 返回首页
Mybatis 中 ResultMap 的使用

Mybatis 中 ResultMap 的使用

Mybatis 中 ResultMap 的使用 最关键的是明白 resultMap 的两个最重要的作用: -1 :当你在 select 中, resultType 是一个 Entity(或 Model等 pojo 时),如果你的 sql 结果集字段与你的 pojo 属性名不一致时,这时可以通过 res…

· 阅读全文