lidatui / mybatis-paginator

A Mybatis plugin, implementation of database paging and sorting.
369 stars 217 forks source link

java.util.ConcurrentModificationException #3

Closed duraymy closed 10 years ago

duraymy commented 10 years ago

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()); } }

lidatui commented 10 years ago

谢谢,明天会更新修正的版本。