20 lines
574 B
Java
20 lines
574 B
Java
package com.sky.common.config;
|
||
|
||
import lombok.extern.slf4j.Slf4j;
|
||
import org.springframework.context.annotation.Bean;
|
||
import org.springframework.context.annotation.Configuration;
|
||
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
|
||
|
||
/**
|
||
* WebSocket配置类,用于注册WebSocket的Bean
|
||
*/
|
||
@Configuration
|
||
@Slf4j
|
||
public class WebSocketConfiguration {
|
||
@Bean
|
||
public ServerEndpointExporter serverEndpointExporter() {
|
||
log.info("WebSocket配置类,用于注册WebSocket的Bean");
|
||
return new ServerEndpointExporter();
|
||
}
|
||
}
|