WebSocketConfig.java 486 B

12345678910111213141516171819
  1. package top.haijunit.train.config;
  2. import org.springframework.context.annotation.Bean;
  3. import org.springframework.context.annotation.Configuration;
  4. import org.springframework.web.socket.server.standard.ServerEndpointExporter;
  5. /**
  6. * @author zhanghaijun
  7. * @date 2023/11/3 16:36
  8. * @description WebSocket配置
  9. */
  10. @Configuration
  11. public class WebSocketConfig {
  12. @Bean
  13. public ServerEndpointExporter serverEndpointExporter() {
  14. return new ServerEndpointExporter();
  15. }
  16. }