![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
郡麟天下
这个作者很懒,什么都没留下…
展开
-
深入了解MyBatis参数
深入了解MyBatis参数相信很多人可能都遇到过下面这些异常:"Parameter 'xxx' not found. Available parameters are [...]""Could not get property 'xxx' from xxxClass. Cause:"The expression 'xxx' evaluated to a null转载 2017-05-24 17:57:11 · 642 阅读 · 0 评论 -
mybatis核心讲解
有的时候需要根据要查询的参数动态的拼接SQL语句常用标签:- if:字符判断- choose【when...otherwise】:分支选择- trim【where,set】:字符串截取,其中where标签封装查询条件,set标签封装修改条件- foreach: if案例1)在EmployeeMapper接口文件添加一个方法原创 2017-09-07 11:47:29 · 427 阅读 · 0 评论 -
Mybatis调用Oracle返回结果集存储过程
Mapper.xml 配置 call pro_emp(#{emps,mode=OUT,jdbcType=CURSOR,javaType=java.sql.ResultSet,resultMap=empMap}) ]转载 2017-10-25 23:22:16 · 753 阅读 · 0 评论