package com.kidgrow.websocket.config;
|
|
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Configuration;
|
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
|
|
|
/**
|
* 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
|
*
|
* @Description: 开启websocket的支持<br>
|
* @Project: <br>
|
* @CreateDate: Created in 2020/3/1 16:05 <br>
|
* @Author: <a href="4345453@kidgrow.com">liuke</a>
|
*/
|
@Configuration
|
public class WebSocketConfig {
|
@Bean
|
public ServerEndpointExporter serverEndpointExporter(){
|
return new ServerEndpointExporter();
|
}
|
}
|