forked from kidgrow-microservices-platform

侯瑞军
2020-04-08 a7d2a09092252aed171dfa7cdefdff108759b21e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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();  
    }  
}