org.apache.ibatis.binding.BindingException: Parameter 'params' not found. Available parameters are [Params, param1]
时间: 2023-11-11 11:14:53 浏览: 113
这情况可能是由于对数据库进行操作时有多个参数但是持久层即Dao层中的方法内没有写占位符 @Param("params") 导致的。如果在每个参数前面加上占位符的话就不会出现这种错误。例如,在更新数据时,可以使用注解@Param("params")来指定参数名。在这种情况下,即使有多个参数,也可以正常工作。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Cause: org.apache.ibatis.binding.BindingException: Parameter ‘xx‘ not found.](https://blog.csdn.net/qq_54141095/article/details/124199713)[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_1"}}] [.reference_item style="max-width: 50%"]
- *3* [org.apache.ibatis.binding.BindingException: Parameter ‘username‘ not found. Available parameters ...](https://blog.csdn.net/qq_30815659/article/details/122016109)[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_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文