报错日志
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'first' not found. Available parameters are [0, 1, param1, param2]] with root cause
org.apache.ibatis.binding.BindingException: Parameter 'first' not found. Available parameters are [0, 1, param1, param2]
出错的Mapper.java
List<WsMenu> twoParam(Integer first, Integer second);
解决办法(指定参数别名):
List<WsMenu> twoParam(@Param("first") Integer first,@Param("second") Integer second);