|
|
|
@ -6,14 +6,11 @@ import org.springframework.web.socket.server.standard.ServerEndpointExporter;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* websocket 配置
|
|
|
|
* websocket 配置
|
|
|
|
*
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
public class WebSocketConfig
|
|
|
|
public class WebSocketConfig {
|
|
|
|
{
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
public ServerEndpointExporter serverEndpointExporter()
|
|
|
|
public ServerEndpointExporter serverEndpointExporter() {
|
|
|
|
{
|
|
|
|
|
|
|
|
return new ServerEndpointExporter();
|
|
|
|
return new ServerEndpointExporter();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|