![](https://img-blog.csdnimg.cn/20190920093227380.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
mybatis
文章平均质量分 66
好技术搬运工
三人行,必有我师焉!
展开
-
Mybatis:resultMap的使用总结
Mybatis的介绍以及使用:http://www.mybatis.org/mybatis-3/zh/index.html 转自:https://www.cnblogs.com/kenhome/p/7764398.html resultMap是Mybatis最强大的元素,它可以将查询到的复杂数据(比如查询到几个表中数据)映射到一个结果集当中。 resultMap包含的元素: <!--column不做限制,可以为任意表的字段,而property须为type 定义的pojo属性-->.转载 2021-09-08 01:23:36 · 254 阅读 · 0 评论 -
使用Mybatis时发生的错误 Parameter 'userId' not found. Available parameters are [arg1, arg0, param1, param2]
做项目的时候,出现的一个小错误,刚开始还是为是Mapper接口写的参数名与XML中的SQL定义中取值时写的参数名不一致。后来发现我在Mapper接口文件中没有使用@Param注解。错误修正前,xml和Mapper中的代码如下: xml中的SQL查询语句:select <include refid="Base_Column_List" /> from XXX where u_id...原创 2018-06-06 16:22:32 · 5332 阅读 · 0 评论