|
|
@@ -1,6 +1,5 @@
|
|
|
package cn.hnthyy.thmz.socket.config;
|
|
|
|
|
|
-import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
|
|
|
|
|
|
@@ -12,7 +11,7 @@ public class WebSocketConfig {
|
|
|
* 如果要使用websocket,需要注入ServerEndpointExporter
|
|
|
* @return
|
|
|
*/
|
|
|
- @Bean
|
|
|
+ //@Bean
|
|
|
public ServerEndpointExporter serverEndpointExporter(){
|
|
|
return new ServerEndpointExporter();
|
|
|
}
|