0

我想扩展 DefaultSubscriptionRegistry 的默认行为。如何配置 SimpleBrokerMessageHandler 以在 XML 中设置自定义 SubscriptionRegistry?

<websocket:message-broker application-destination-prefix="/inrightsApp">
    <websocket:stomp-endpoint path="/websocket/notify" allowed-origins="*"/>
    <websocket:simple-broker prefix="/websocket/stomp/">

    </websocket:simple-broker>
</websocket:message-broker>
4

1 回答 1

-1

我的conf如下

<websocket:message-broker
    application-destination-prefix="/app">
    <websocket:stomp-endpoint path="/ws">
        <websocket:sockjs />
    </websocket:stomp-endpoint>
    <websocket:simple-broker prefix="/notify" />
</websocket:message-broker>
于 2017-01-05T15:33:05.957 回答