@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfig
extends java.lang.Object
implements org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
Constructor and Description |
---|
WebSocketConfig() |
Modifier and Type | Method and Description |
---|---|
void |
configureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry registry) |
org.springframework.web.servlet.config.annotation.WebMvcConfigurer |
corsConfigurer() |
void |
registerStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry) |
@Bean public org.springframework.web.servlet.config.annotation.WebMvcConfigurer corsConfigurer()
public void registerStompEndpoints(org.springframework.web.socket.config.annotation.StompEndpointRegistry registry)
registerStompEndpoints
in interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
public void configureMessageBroker(org.springframework.messaging.simp.config.MessageBrokerRegistry registry)
configureMessageBroker
in interface org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.