Currently, I am trying to use STOMP with websockets using webflux. In order to send a message to a STOMP topic, I need to use SimpMessagingTemplate
, which is contributed by spring boot auto configuration when I add @EnableWebSocketMessageBroker
But the problem with this is, @EnableWebSocketMessageBroker
indirectly expects me to have spring-mvc
library in classpath
@EnableWebSocketMessageBroker
@Import
s DelegatingWebSocketMessageBrokerConfiguration
which extends WebSocketMessageBrokerConfigurationSupport
& WebSocketMessageBrokerConfigurationSupport#stompWebSocketHandlerMapping
method expects the class HandlerMapping
to be returned
My question is
- How to integrate STOMP with webflux without webmvc
- Why is the autoconfiguration forcing us to have mvc in classpath (and potentially conflict with webflux)