19 lines
545 B
Java
19 lines
545 B
Java
![]() |
package cn.iocoder.yudao.module;
|
||
|
import org.springframework.context.annotation.Bean;
|
||
|
import org.springframework.context.annotation.Configuration;
|
||
|
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
|
||
|
|
||
|
/**
|
||
|
* @Author: chuxia0811
|
||
|
* @Date: 2023/7/9 10:15
|
||
|
* @Description : webSocketConfig配置类,该bean用于扫描被@ServerEndpoint注解的类
|
||
|
*/
|
||
|
@Configuration
|
||
|
public class WebSocketConfig {
|
||
|
|
||
|
@Bean
|
||
|
public ServerEndpointExporter serverEndpointExporter(){
|
||
|
return new ServerEndpointExporter();
|
||
|
}
|
||
|
}
|