nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘domain‘ not found. Availa

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'domain' not found. Available parameters are [arg1, arg0, param1, param2]
	at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92)
	at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440)
	at com.sun.proxy.$Proxy160.selectOne(Unknown Source)
	at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:159)
	at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:108)

好文参考:Mybatis报错: Parameter ‘XXX‘ not found. Available parameters are [arg1, arg0, param1, param2]解决方案及问题原因_parameter not found available-CSDN博客

  • 4
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
nested exception is org.apache.ibatis.binding.BindingException: Parameter "parentNodeId" not found是MyBatis绑定异常的错误信息。这个错误通常发生在MyBatis映射文件中,提示在参数中找不到"parentNodeId"参数。 要解决这个问题,我们需要仔细检查代码,确保在调用MyBatis的方法时正确传递了"parentNodeId"参数。可以通过以下几个步骤来解决这个问题: 1. 检查Mapper接口方法的参数名是否与映射文件中的参数名一致。如果不一致,需要修正参数名以确保匹配。 2. 检查调用MyBatis方法时是否正确传递了"parentNodeId"参数。可以通过在DAO层的方法中添加参数来传递该参数。 3. 检查映射文件中是否正确引用了"parentNodeId"参数。可以通过使用正确的参数名来引用该参数,确保与DAO层的方法参数一致。 4. 检查是否使用了正确的参数位置或参数标识。有时候MyBatis会根据参数的位置或标识来匹配参数,所以需要确保使用了正确的位置或标识。 如果以上步骤都没有解决问题,还可以尝试使用Maven Compiler插件来解决。该插件可以帮助编译过程中检测到参数名不匹配的错误。 综上所述,要解决nested exception is org.apache.ibatis.binding.BindingException: Parameter "parentNodeId" not found的问题,需要确保参数名一致,正确传递参数,并使用正确的参数位置或标识。<span class="em">1</span><span class="em">2</span><span class="em">3</span><span class="em">4</span> #### 引用[.reference_title] - *1* *2* [mybatis异常:nested exception is org.apache.ibatis.binding.BindingException](https://blog.csdn.net/niu1109/article/details/124434791)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [nested exception is org.apache.ibatis.binding.BindingException 解决方式汇总](https://blog.csdn.net/qq_39609993/article/details/128725325)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *4* [Mybatis报错: org.apache.ibatis.exceptions.PersistenceException解决办法](https://download.csdn.net/download/weixin_38524871/12828533)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

骚戴

打赏有用的话还要工作干嘛

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值