Solon 也是 SSE(Server Send Events)后端开发的优选
Solon 2.3.6 在开发异步接口时,顺带也为 Solon Web 提供了 SSE (Server-Sent Events) 协议的支持插件: <dependency> <groupId>org.noear</groupId> <artifactId>solon.web.sse</artifactId> </dependency> 如果不熟 SSE 的,可以通过搜索引擎查询了解下。//个人还是感觉 ws 更方便用:) 使用示例 按群里用户的要求,体验方式尽量采用大家熟悉的命名与风格。 @Controller public class SseDemoController { static Map<String, SseEmitter> emitterMap = new HashMap<>(); @Mapping("/sse/{id}") public SseEmitter sse(String id) { //3000L 是后端异步超时 return new...


