java.util.ConcurrentModificationException: null
异常
java.util.ConcurrentModificationException: null at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429) ~[na:1.8.0_77] at java.util.HashMap$EntryIterator.next(HashMap.java:1463) ~[na:1.8.0_77] at java.util.HashMap$EntryIterator.next(HashMap.java:1461) ~[na:1.8.0_77]
当对Map遍历的时候进行添加或者删除操作,遍历Map的时候最好不要这样操作
如果遍历的时候一定要添加或删除,参考文章:https://blog.csdn.net/lipei1220/article/details/9028669