注解参数问题:nested exception is org.apache.ibatis.binding.BindingException: Parameter 'roleIdList'
2020-07-19 04:22
1146 查看
五一放假,当然代码不能停。
可能是因为太过于放松,在辛勤耕作时忽略了一些地方,就导致爆出标题的bug,不过好来这是个小问题,不过也记录一下。
问题原因:
xml配置中参数名未知,那么就可以考虑问题可能出现的几个地方:
1. handler中从前端传入的参数是否有误,是否需要使用@requestParam注解
2. mapper 映射文件是否添加@param注解
3. xml文件是否属性名是否与mapper文件中的参数名一致
以上几种情况都检查后发现mapper映射文件中参数没有添加@param注解,导致mybatis无法识别,因此,加上注解再次运行,解决。好了,我还要继续码代码。
日拱一卒,得寸进尺。
相关文章推荐
- mybatis问题org.apache.ibatis.binding.BindingException: Parameter 'loginId' not found.
- mybatis问题org.apache.ibatis.binding.BindingException: Parameter 'loginId' not found.
- mybatis:方法需要传入多个参数时,报错:Caused by: org.apache.ibatis.binding.BindingException: Parameter 'p_v_id' not
- nested exception is org.apache.ibatis.binding.BindingException: Parameter '__frch_item_0' not found
- nested exception is org.apache.ibatis.binding.BindingException Mybatis参数错误
- Mybatis报错(一)nested exception is org.apache.ibatis.binding.BindingException: Parameter '****'
- 问题3:HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding
- nested exception is org.apache.ibatis.binding.BindingException: Parameter 'XXX' not found报错
- mybatis多参数查询问题:org.apache.ibatis.binding.BindingException: Parameter 'name' not found. Available par
- nested exception is org.apache.ibatis.binding.BindingException: Parameter 'XXX' not found报错
- nested exception is org.apache.ibatis.binding.BindingException: Parameter 'goodsId' not found. Avail
- ssm整合问题Exception:Request processing failed; nested exception is org.apache.ibatis.binding.BindingExc
- Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid b
- Invocation of init method failed; nested exception is org.apache.ibatis.binding.BindingException: In
- nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
- org.apache.ibatis.binding.BindingException: Parameter 'List' not found. Available parameters are [l
- Mybatis问题org.apache.ibatis.binding.BindingException: Parameter 'title' not found.
- HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingEx
- 异常:Request processing failed; nested exception is org.apache.ibatis.binding.BindingException
- [Java] Request processing failed; nested exception is org.apache.ibatis.binding.Bin