Parameter '0' not found. Available parameters are [arg2, arg1, arg0, param3, param1, param2]
来源:互联网 发布:java 没错溢出 编辑:程序博客网 时间:2024/06/05 04:07
解决org.apache.ibatis.binding.BindingException: Parameter '0' not found. Available parameters are [arg2, arg1, arg0, param3, param1, param2] 问题
为在MyBatis3.4.4版不能直接使用#{0}要使用 #{arg0}
错误的情况:
1.修改
- <update id="updateStatusById" parameterType="java.lang.Integer">
- update
- nic_techsupport
- set status_id = #{0}
- where techsupport_id =#{1}
- </update>
- <update id="updateStatusById" parameterType="java.lang.Integer">
- update
- nic_techsupport
- set status_id = #{arg0}
- where techsupport_id =#{arg1}
- </update>
还有就是吧mybatis的版本改为低版本 比如改为 3.2.1
<dependency><groupId>org.mybatis</groupId><artifactId>mybatis</artifactId><version>3.2.1</version></dependency>
阅读全文
0 0
- Parameter '0' not found. Available parameters are [arg2, arg1, arg0, param3, param1, param2]
- Parameter '0' not found. Available parameters are [arg2, arg1, arg0, param3, param1, param2]
- MyBatis3错误:Parameter 'id' not found. Available parameters are [arg2, arg1, arg0, param3, param1, par
- MyBatis报错 Parameter '0' not found. Available parameters are [arg1, arg0, param1, param2]
- MyBatis报错 Parameter '0' not found. Available parameters are [arg1, arg0, param1, param2]
- Parameter 'offset' not found. Available parameters are [arg1, arg0, param1, param2]
- MyBites:Parameter 'wechatId' not found. Available parameters are [2, 1, 0, param1, param2, param3]
- Parameter not found.Available parameters are [0, 1, 2, param3, param1, param2]
- Parameter 'xxx' not found. Available parameters are [3, 2, 1, 0, param1, param2, param3, para
- Parameter 'id' not found. Available parameters are [0, 1, 2, param3, param1, param2]
- Parameter 'id' not found. Available parameters are [0, 1, 2, param3, param1, param2]
- 关于Parameter 'xxx' not found. Available parameters are [0, 1, 2, param3, param1, param2]错误
- Parameter 'id' not found. Available parameters are [0, 1, 2, param3, param1, param2]
- Parameter 'userName' not found. Available parameters are [0, 1, 2, param3, param1, param2]
- Parameter 'id' not found. Available parameters are [0, 1, 2, param3, param1, param2]
- Available parameters are [arg1, arg0, param1, param2]
- 为什么id' not found. Available parameters are [arg1, arg0, param1, param2] at org.mybatis.spring.MyBat
- Mybatis SQL 报错:Parameter 'position' not found. Available parameters are [arg2, arg1, arg0。。。
- 使用faster-rcnn训练自己的模型
- 接口测试用例小结
- Linux vim命令
- one_plus
- python简单的笔记
- Parameter '0' not found. Available parameters are [arg2, arg1, arg0, param3, param1, param2]
- 关于N皇后问题
- Dos 设置网络的指令
- C++学习笔记---内部类与名字空间
- 在 Laravel 中使用 Laravel Searchy 遇到的坑
- 使用版本 1.0.0 的 Azure ARM SDK for Java 创建虚拟机时报错
- Apache Beam中的有状态计算
- 【IOI2000】&邮局-这个世界需要更多邮局&
- Centos7下一步一步安装YCM插件(附vimrc配置文件)