摘要: 首先,我们需要创建一个HttpSessionListener来监听会话的创建和销毁事件。当新的会话创建时,我们将增加在线人数;当会话销毁时,我们将减少在线人数。 public class OnlineCounterListener implements HttpSessionListener { p 阅读全文
posted @ 2024-04-21 12:22 文采杰出 阅读(20) 评论(0) 推荐(0) 编辑