# Error querying database. Cause: org.apache.ibatis.binding.BindingException: Parameter 'username' not found. Available parameters are [arg1, arg0, param1, param2]
### Cause: org.apache.ibatis.binding.BindingException: Parameter 'username' not found. Available parameters are [arg1, arg0, param1, param2]
Disconnected from the target VM, address: '127.0.0.1:65195', transport: 'socket'
如上异常
错误原因:
- 接口方法里包含多个参数时,使用@Param注解进行标识
- 记得添加
- import org.apache.ibatis.annotations.Param;
- 依赖