2 changed files with 18 additions and 0 deletions
@ -0,0 +1,16 @@ |
|||
package com.xtong.zhbs.configure; |
|||
|
|||
import org.springframework.context.annotation.Bean; |
|||
import org.springframework.context.annotation.Configuration; |
|||
import org.springframework.web.socket.server.standard.ServerEndpointExporter; |
|||
|
|||
/** |
|||
* webscoket configuration |
|||
*/ |
|||
@Configuration |
|||
public class WebSocketConfig { |
|||
@Bean |
|||
public ServerEndpointExporter serverEndpointExporter(){ |
|||
return new ServerEndpointExporter(); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue