RUOYI-geek/ruoyi-plugins/ruoyi-websocket/src/main/java/com/ruoyi/websocket/WebSocketConfig.java
2024-04-24 17:27:52 +08:00

21 lines
445 B
Java

package com.ruoyi.websocket;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
/**
* websocket 配置
*
* @author ruoyi
*/
@Configuration
public class WebSocketConfig
{
@Bean
public ServerEndpointExporter serverEndpointExporter()
{
return new ServerEndpointExporter();
}
}