Parameter ‘age‘ not found. Available parameters are [arg1, arg0, param1, param2]报错解决

2023-05-16

本篇博客主要记录尚融宝项目的mybatis-plus分页插件学习过程中遇到的报错解决。

报错信息如下

org.mybatis.spring.MyBatisSystemException: 
nested exception is org.apache.ibatis.binding.BindingException: 
Parameter 'age' not found. Available parameters are [arg1, arg0, param1, param2]

改之前

IPage<User> selectPageByAge(Page<?> page,Integer age);

解决方案-改之后

IPage<User> selectPageByAge(@Param("pageParam") Page<?> page, @Param("age") Integer age);
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Parameter ‘age‘ not found. Available parameters are [arg1, arg0, param1, param2]报错解决 的相关文章

随机推荐