package com.moral.api.config.websocket;
|
|
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Configuration;
|
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
|
|
/**
|
* @ClassName WebSocketConfig
|
* @Description TODO
|
* @Author 陈凯裕
|
* @Date 2021/6/15 13:53
|
* @Version TODO
|
**/
|
@Configuration
|
public class WebSocketConfig {
|
|
@Bean
|
public ServerEndpointExporter serverEndpointExporter(){
|
return new ServerEndpointExporter();
|
}
|
}
|