Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘currentPageNo’ not found. Available parameters are [arg2, proCode, pageSize, proName, param3, param4, param1, param2]
事故发生地

如果我currentPageNo 不加 @param()注解会报错找不到此参数

本文探讨了在使用MyBatis时遇到的Parameter 'currentPageNo' not found异常,详细解释了该异常产生的原因及解决方案。重点指出在使用@Param注解时的基本规则:基本类型和String需明确标注,引用类型可以省略,但推荐标注。同时,文章提醒开发者即使只有一个参数,最好也加上@Param注解以避免类似问题。
4万+

被折叠的 条评论
为什么被折叠?



