Mybatis的ResultMap的使用

一、工程使用Spring+Mybatis+Mysql开发。

二、MyBatis中在查询进行select映射的时候,返回类型可以用resultType,也可以用resultMap,resultType是直接表示返回类型的,而resultMap则是对外部ResultMap的引用,但是resultType跟resultMap不能同时存在。

三、非常详细的使用实例:
http://www.cnblogs.com/rollenholt/p/3365866.html

猜你喜欢

转载自huangliangbao.iteye.com/blog/2201200