package com.mengxiangnongfu.cms.framework.configure; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.socket.config.annotation.EnableWebSocket; import org.springframework.web.socket.server.standard.ServerEndpointExporter; /** * @author :Yang * @date :Created in 2022/10/22 15:40 * @description:WebSocket配置 * @modified By: * @version: $ */ @Configuration @EnableWebSocket public class WebSocketConfig { @Bean public ServerEndpointExporter serverEndpointExporter() { return new ServerEndpointExporter(); } }
ServerEndpointExporter 类一直找不到,检查发现websocket包始终下载不完整换成阿里的数据源地址再试标签:WebSocket,SpringBoot,ServerEndpointExporter,springframework,org,import,annotatio From: https://www.cnblogs.com/sansui/p/16816407.html