|
|
|
@ -45,12 +45,12 @@ import org.springframework.context.annotation.Import;
@@ -45,12 +45,12 @@ import org.springframework.context.annotation.Import;
|
|
|
|
|
* @EnableWebSocketMessageBroker |
|
|
|
|
* public class MyConfiguration extends AbstractWebSocketMessageBrokerConfigurer { |
|
|
|
|
* |
|
|
|
|
* @Override |
|
|
|
|
* @Override |
|
|
|
|
* public void registerStompEndpoints(StompEndpointRegistry registry) { |
|
|
|
|
* registry.addEndpoint("/portfolio").withSockJS(); |
|
|
|
|
* } |
|
|
|
|
* |
|
|
|
|
* @Bean |
|
|
|
|
* @Bean |
|
|
|
|
* public void configureMessageBroker(MessageBrokerRegistry registry) { |
|
|
|
|
* registry.enableStompBrokerRelay("/queue/", "/topic/"); |
|
|
|
|
* registry.setApplicationDestinationPrefixes("/app/"); |
|
|
|
|