ZuulWebSocketConfiguration needs messagingTemplate to be injected
@Autowired SimpMessagingTemplate messagingTemplate;
which will trigger the invokation of org.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration#brokerMessagingTemplate() and then brokerChannel() and then getBrokerRegistry() and then org.springframework.web.socket.config.annotation.DelegatingWebSocketMessageBrokerConfiguration#configureMessageBroker(MessageBrokerRegistry) and ZuulWebSocketConfiguration has not been initialized yet at that time and the configurers variable has not been injected, and this results ZuulWebSocketConfiguration#configureMessageBroker(MessageBrokerRegistry) never been called.
ZuulWebSocketConfiguration needs messagingTemplate to be injected
@Autowired SimpMessagingTemplate messagingTemplate;
which will trigger the invokation oforg.springframework.messaging.simp.config.AbstractMessageBrokerConfiguration#brokerMessagingTemplate()
and thenbrokerChannel()
and thengetBrokerRegistry()
and thenorg.springframework.web.socket.config.annotation.DelegatingWebSocketMessageBrokerConfiguration#configureMessageBroker(MessageBrokerRegistry)
and ZuulWebSocketConfiguration has not been initialized yet at that time and theconfigurers
variable has not been injected, and this resultsZuulWebSocketConfiguration#configureMessageBroker(MessageBrokerRegistry)
never been called.