最近做项目测试mapper接口时出现了下面这个异常,接口的函数参数找不到,网上搜索发现可能是@Param注解问题。

 ibatis BindingException  Parameter 'status' not found. Available parameters are [arg1, arg0, param1, param2] 解决方法

 

查阅Mybatis官方文档对@Param的解释如下:

 

 ibatis BindingException  Parameter 'status' not found. Available parameters are [arg1, arg0, param1, param2] 解决方法

在代码中加入,

ibatis BindingException  Parameter 'status' not found. Available parameters are [arg1, arg0, param1, param2] 解决方法

异常消失 测试通过。

ibatis BindingException  Parameter 'status' not found. Available parameters are [arg1, arg0, param1, param2] 解决方法

 

相关文章:

  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2021-06-20
  • 2022-12-23
  • 2021-12-12
  • 2021-09-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2021-07-16
  • 2021-05-02
  • 2021-12-12
  • 2022-12-23
相关资源
相似解决方案