
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 · 813 阅读 · 0 评论 -
mybatis核心讲解
有的时候需要根据要查询的参数动态的拼接SQL语句 常用标签: - if:字符判断 - choose【when...otherwise】:分支选择 - trim【where,set】:字符串截取,其中where标签封装查询条件,set标签封装修改条件 - foreach: if案例 1)在EmployeeMapper接口文件添加一个方法原创 2017-09-07 11:47:29 · 449 阅读 · 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 · 796 阅读 · 0 评论