![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
第一代码
这个作者很懒,什么都没留下…
展开
-
MyBatis的resultMap简介
MyBatis中在查询进行select映射的时候,返回类型可以用resultType,也可以用resultMap,resultType是直接表示返回类型的,而resultMap则是对外部ResultMap的引用,但是resultType跟resultMap不能同时存在。在MyBatis原创 2017-07-13 09:15:48 · 213 阅读 · 0 评论 -
详解MyBatis的动态SQL
MyBatis的动态SQL是基于OGNL表达式的,方便在SQL语句中实现某些逻辑。MyBatis中用于实现动态SQL的元素主要有:if choose(when、otherwise) trim where set foreach使用实例见原创文章http://www.diyidaima.com/article/detail/AmuThLzi原创 2017-07-13 09:17:58 · 232 阅读 · 0 评论