springboot使用websocket 的步骤 第一步 导入maven相关依赖 第二步 编写websocket的配置类 config: websocket配置类 第三步 sendall: websocket实现群发消息 sendone: websocket进行一对一发消息