Parameter 'name' not found. Available parameters are [password, arg0, param1, param2]

标题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注解才解决了问题