Object类型转list
Map<String, Object> params = eventNode.getParams(); if (params != null) { List<String> batchIdList = new ArrayList<>(); if (params.get("batchIdList") instanceof ArrayList<?>) { for (Object o : (List<?>) params.get("batchIdList")) { batchIdList.add((String) o); } } }
随笔看心情