org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘name’ not found. Available parameters are [arg1, arg0, param1, param2]
绑定异常,在xml文件中没有封装单独传了两个参数
解决办法,加个注解
List<Dept> selectDept(@Param("name") String name, @Param("pageModel") PageModel pageModel);