sky-take-out/sky-common/src/main/java/com/sky/common/config/WebSocketConfiguration.java

20 lines
574 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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();
}
}