1.报错:
严重: Servlet.service() for servlet [lbd-institution] in context with
path [/ins] threw exception [Request processing failed;
nested exception is java.lang.UnsupportedOperationException] with root cause
java.lang.UnsupportedOperationException
at java.util.AbstractList.remove(AbstractList.java:161)
at java.util.AbstractList$Itr.remove(AbstractList.java:374)
at java.util.AbstractCollection.remove(AbstractCollection.java:291)
2. 场景描述:
把一个字串拆分为数组,再转为集合,再删除集合中的元素
3. 解决:把一个字串拆分为数组,再转为集合后,新new一个集合来复制原集合的数据: