mybatis 异常 org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding
来源:互联网 发布:淘宝助理删除数据 编辑:程序博客网 时间:2024/04/25 09:24
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'user_type' not found. Available parameters are [2, 1, 0, param1, param2, param3]
对于mybatis的接口类中的方法
当方法参数数量大于1时,需要在方法参数中使用@Param把函数参数与Mapper.xml文件中的参数关联起来例如
dao层
User getUser(@Param("name")String xingming,@Param("classId") String banji)
对应的xml文件
<select id="getUser" resultMap="User" >
select id ,name ,sex ,age,classId
where classId=#{classId} and name=#{name}
</select>
参考:http://blog.csdn.net/sinat_29325027/article/details/51143448?_t_t_t=0.2515934589002933
阅读全文
0 0
- mybatis异常:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.B
- mybatis 异常 org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding
- Spring错误:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.Bi
- Spring错误:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.B
- Spring错误:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.Bi
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingExce
- mybatis报错:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exception
- Spring+mybatis错误:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.bi
- Spring+MyBatis 错误:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.b
- MyBatis批量更新报错org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.bindin
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.Persiste
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorEx
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.Reflecti
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.Reflecti
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.Reflecti
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.Persiste
- org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderExce
- hankson的BT(bio-tech 变态)题 关于for循环边界
- 详细设计
- LeakCanary开源框架使用说明
- Unity Game视图不显示flare解决方法
- WPF 解决无边框产生的相关问题
- mybatis 异常 org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding
- FileOutputStream的简单用法
- MongoDB、Cassandra 和 HBase 三种 NoSQL 数据库比较
- Java程序员应当知道的10个面向对象设计原则
- resiprocate编译测试
- 基于vue + nuxt 打造 o2o教育商城系统(触屏版) 服务端渲染SSR
- adb server version (31) doesn't match this client (36); killing... error: could not install *sm
- php 两个数组合并,一个做键,一个做值
- Android-插件化