Loading

摘要: 一般情况下使用HashMap可以解决key-value的使用要求。 但是在对线程同步有要求的情况下,HashMap由于自身特性不能满足,可以采用下面几种方式 1,Hashtable Map<String, String> map = new Hashtable<>() 2,ConcurrentHas 阅读全文
posted @ 2021-07-15 14:59 itjone 阅读(398) 评论(0) 推荐(0) 编辑