org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘tag1’ not found. Available parameters are [arg1, arg0, param1, param2]
多个参数从数据库取数据时,一直报这个错,经过查找资料等,终于成功解决,解决前代码为
DAO层
public List selectYmList(String tag1,String month);
修改后
public List selectYmList(@Param(“tag1”)String tag1,@Param(“month”)String month);