File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/backend/signaling-server/src/main/java/com/asyncgate/signaling_server/config Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 99import com .asyncgate .signaling_server .support .handler .KurentoHandler ;
1010import org .kurento .client .KurentoClient ;
1111import org .springframework .beans .factory .annotation .Value ;
12- import org .springframework .context .annotation .Bean ;
13- import org .springframework .context .annotation .Configuration ;
12+ import org .springframework .context .annotation .*;
1413import org .springframework .messaging .simp .SimpMessagingTemplate ;
1514import org .springframework .web .socket .config .annotation .EnableWebSocket ;
1615import org .springframework .web .socket .config .annotation .WebSocketConfigurer ;
@@ -36,12 +35,14 @@ public class KurentoConfig implements WebSocketMessageBrokerConfigurer {
3635
3736 private final FilterChannelInterceptor filterChannelInterceptor ;
3837 private final WebSocketHandshakeInterceptor webSocketHandshakeInterceptor ;
38+
39+ @ Lazy
3940 private final SimpMessagingTemplate messagingTemplate ;
4041 private final WebClientUtil webClientUtil ;
4142
4243 public KurentoConfig (FilterChannelInterceptor filterChannelInterceptor ,
4344 WebSocketHandshakeInterceptor webSocketHandshakeInterceptor ,
44- SimpMessagingTemplate messagingTemplate ,
45+ @ Lazy SimpMessagingTemplate messagingTemplate ,
4546 WebClientUtil webClientUtil ) {
4647 this .filterChannelInterceptor = filterChannelInterceptor ;
4748 this .webSocketHandshakeInterceptor = webSocketHandshakeInterceptor ;
You can’t perform that action at this time.
0 commit comments