WebSocketConfig.java 545 B

1234567891011121314151617181920
  1. //package com.gyee.runeconomy.config;
  2. //
  3. //
  4. //import org.springframework.context.annotation.Bean;
  5. //import org.springframework.context.annotation.Configuration;
  6. //import org.springframework.web.socket.server.standard.ServerEndpointExporter;
  7. //
  8. ///**
  9. // * 开启 WebSocket 支持
  10. // **/
  11. //@Configuration
  12. //public class WebSocketConfig {
  13. //
  14. // @Bean
  15. // public ServerEndpointExporter serverEndpointExporter() {
  16. // System.out.println("开启websocket支持。。。。。");
  17. // return new ServerEndpointExporter();
  18. // }
  19. //
  20. //}