2021年12月16日

Java 双亲委派机制

摘要: 链接: https://jitwxs.cn/9f878221.html 阅读全文

posted @ 2021-12-16 15:23 qqq9527 阅读(12) 评论(0) 推荐(0) 编辑

使用ParallelStream 与线程不安全的list导致数据为null

摘要: 使用list.parallelStream发现方法返回的list中包含null数据,原因是因为parallelStream是线程安全的,使用arrayList非线程安全的会出现null,换成 List<JSONObject> jsonObject = Collections.synchronized 阅读全文

posted @ 2021-12-16 14:39 qqq9527 阅读(47) 评论(0) 推荐(0) 编辑

导航