标题org.apache.ibatis.binding.BindingException: Parameter ‘name’ not found. Available parameters are [password, arg0, param1, param2]

今天在springboot整合mybatis时遇到的一个小坑
报错信息
Parameter 'name' not found. Available parameters are [password, arg0, param1, param2]
根据用户名和密码查用户 这是我的UserMapper.xml文件
Parameter 'name' not found. Available parameters are [password, arg0, param1, param2]
这是mapper层的接口
Parameter 'name' not found. Available parameters are [password, arg0, param1, param2]
必须加上@Param注解才解决了问题

相关文章:

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