mybatis中resultType和resultMap有什么区别?
发布时间:2022-11-17 18:23:48
发布人:qyf

1. resultType是直接表示返回类型的(对应着我们的model对象中的实体);
2. resultMap则是对外部ResultMap的引用(提前定义了db和model之间的隐射key-->value关系),但是resultType跟resultMap不能同时存在。