SmartWebSocketConfig.java 619 B

12345678910111213141516171819202122232425
  1. package net.lab1024.smartadmin.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. * [ WebSocketConfig ]
  7. *
  8. * @author yandanyang
  9. * @version 1.0
  10. * @company 1024lab.net
  11. * @copyright (c) 2018 1024lab.netInc. All rights reserved.
  12. * @date 2019/7/10 0010 下午 16:07
  13. * @since JDK1.8
  14. */
  15. @Configuration
  16. public class SmartWebSocketConfig {
  17. @Bean
  18. public ServerEndpointExporter serverEndpointExporter() {
  19. return new ServerEndpointExporter();
  20. }
  21. }