Spring Cloud/Boot WebSocket 沒法注入其餘類的解決辦法

SpringBoot官方文檔推薦實現的WebSocket的方式是添加@ServerEndpoint這個註解。我也是按照推薦實現的。 可是有問題。 我開始的寫的WebSocket的例子:html @ServerEndpoint(value = "/websocket" ) @Component public class MyWebSocket { // 與某個客戶端的鏈接會話,須要經過
相關文章
相關標籤/搜索