Spring+mybatis错误:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding
1 | org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'username' not found. Available parameters are [1, 0, param1, param2] |
经测试应该是忘了使用@Param。当只有一个参数时,Mapper中可以不使用
1 | public interface LoginDao { |