java.util.ConcurrentModificationException
at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:394)
at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:413)
at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:412)
at com.github.miemiedev.mybatis.paginator.springmvc.PageListAttrHandlerInterceptor.postHandle(PageListAttrHandlerInterceptor.java:37)
java.util.ConcurrentModificationException at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:394) at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:413) at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:412) at com.github.miemiedev.mybatis.paginator.springmvc.PageListAttrHandlerInterceptor.postHandle(PageListAttrHandlerInterceptor.java:37)
=========================>
for(Map.Entry<String, Object> item : model.entrySet()){ Object attr = item.getValue(); if(attr instanceof PageList){ PageList pageList = (PageList)attr; //原属性加后缀 ****\ bug code modelAndView.addObject(item.getKey()+"Paginator", pageList.getPaginator()); } }