Closed song01 closed 1 year ago
private static Map<String,Session> sessionPool = new HashMap<String,Session>(); private static Map<String,String> sessionIds = new HashMap<String,String>(); 这两个共享的map不应该是线程安全的吗
感谢提出问题,现在解决啦
private static Map<String,Session> sessionPool = new HashMap<String,Session>(); private static Map<String,String> sessionIds = new HashMap<String,String>(); 这两个共享的map不应该是线程安全的吗