| 123456789101112131415161718192021222324 |
- package cn.com.goldenwater.dcproj.config;
- import org.springframework.context.annotation.Bean;
- import org.springframework.context.annotation.Configuration;
- import org.springframework.web.socket.server.standard.ServerEndpointExporter;
- /**
- * <p>
- * 开启WebSocket支持
- * </p>
- *
- * @author luneyq
- * @author liyz
- * @date 2019/4/16 14:32
- */
- @Configuration
- public class WebSocketConfig {
- @Bean
- public ServerEndpointExporter serverEndpointExporter() {
- return new ServerEndpointExporter();
- }
- }
|