Set addAll报错:java.lang.UnsupportedOperationException: null 解决方法: Set<Long> keySet = new HashSet<>(map1.keySet());