【Mybatis异常】 org.apache.ibatis.binding.BindingException: Parameter 'storeId' not found. Available parameters are [form, param1]
2023-09-14 08:57:35 时间
一、异常信息
2019-05-31 16:06:25.272 [http-nio-10650-exec-3] WARN o.s.w.s.m.m.a.ExceptionHandlerExceptionResolver.logException(AbstractHandlerExceptionResolver.java:192) - Resolved exception caused by Handler execution: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'storeId' not found. Available parameters are [form, param1] 2019-05-31 16:06:36.665 [http-nio-10650-exec-4] ERROR c.x.xcauto.common.controller.BaseControllerAdvice.globalExceptionHandler(BaseControllerAdvice.java:33) - 检测到未捕捉异常:IP:0:0:0:0:0:0:0:1 invoke url:http://localhost:10650/material-requisition/list/v1 Exception:public class org.mybatis.spring.MyBatisSystemException org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'storeId' not found. Available parameters are [form, param1] at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:77) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:446) at com.sun.proxy.$Proxy176.selectList(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:230) at org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:139) at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:76) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:59) at com.sun.proxy.$Proxy177.getMaterialRequisitionList(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:197) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
二、解决办法:
@Param注解去掉就可以,实现直接从对象中通过#{},获取属性值
相关文章
- Apache struts2 namespace远程命令执行—CVE-2018-11776(S2-057)漏洞复现
- MyBatis框架:第三章:传统方式mybatis的增,删,改,查实现
- MyBatis框架:第十一章:mybatis 逆向工程
- Apache配置虚拟主机_apache中配置虚拟主机的作用
- MyBatis框架:第十一章:mybatis 逆向工程
- MyBatis框架:第三章:传统方式mybatis的增,删,改,查实现
- Apache knox_apache发生服务特定错误1
- maven项目使用mybatis插件Free Mybatis plugin「建议收藏」
- 解决Linux+Apache服务器URL区分大小写问题
- [PHP] PHP与Apache的模块配合说明详解编程语言
- 一个封装的使用Apache HttpClient进行Http请求(GET、POST、PUT等)的类。详解编程语言
- 服务Linux下重启Apache服务的步骤(linux重启apache)
- 搭配Apache MySQL:超强联手服务器助力(apache和mysql)
- Apache安装MySQL数据库的指南(apache装mysql)
- 简易搭建Mybatis连接Oracle数据库(mybatis连接oracle)
- APACHE安装笔记
- JAVA/JSP学习系列之三(Resin+Apache的安装)
- linux下安装apache与php;Apache+PHP+MySQL配置攻略
- apache的多站点虚拟主机配置方法
- apache中通过mod_rewrite实现伪静态页面的方法
- apache后缀名支持让apache支持apkipk下载的方法
- 浅析linux下apache服务器的配置和管理
- 配置Apache支持shtml(SSI)的方法
- apache性能测试工具ab使用详解