xin
2025-09-22 9af6657ee58f9fbaf17cf12a59244efd2fc92a84
oying-common/src/main/java/com/oying/config/webConfig/WebSocketConfig.java
@@ -1,18 +1,18 @@
package com.oying.config.webConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
/**
 * @author Z
 * @date 2019-08-24 15:44
 */
@Configuration
public class WebSocketConfig {
   @Bean
   public ServerEndpointExporter serverEndpointExporter() {
      return new ServerEndpointExporter();
   }
}
//package com.oying.config.webConfig;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.socket.server.standard.ServerEndpointExporter;
//
///**  打war包注释
// * @author Z
// * @date 2019-08-24 15:44
// */
//@Configuration
//public class WebSocketConfig {
//
//   @Bean
//   public ServerEndpointExporter serverEndpointExporter() {
//      return new ServerEndpointExporter();
//   }
//}