查询进行 select 映射的时候,返回类型为 resultType 或者 resultMap。 

区别: 

1.resultType 是直接表示返回类型的(对应着我们的 model 对象中的实体) ;

2.resultMap 是对外部 ResultMap 的引用(提前定义了 db 和 model 之间的映射关系),但 resultType 跟 resultMap 不能同时存在。


参考:​​https://mingyundezuoan.iteye.com/blog/2207122​