本篇博客主要记录尚融宝项目的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);
版权声明:本文为qq_42437577原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。