diff --git a/spring-session-core/src/main/java/org/springframework/session/web/socket/config/annotation/AbstractSessionWebSocketMessageBrokerConfigurer.java b/spring-session-core/src/main/java/org/springframework/session/web/socket/config/annotation/AbstractSessionWebSocketMessageBrokerConfigurer.java index ebc5de364..bc5c06c84 100644 --- a/spring-session-core/src/main/java/org/springframework/session/web/socket/config/annotation/AbstractSessionWebSocketMessageBrokerConfigurer.java +++ b/spring-session-core/src/main/java/org/springframework/session/web/socket/config/annotation/AbstractSessionWebSocketMessageBrokerConfigurer.java @@ -112,7 +112,7 @@ public void configureWebSocketTransport(WebSocketTransportRegistration registrat } @Bean - public WebSocketRegistryListener webSocketRegistryListener() { + public static WebSocketRegistryListener webSocketRegistryListener() { return new WebSocketRegistryListener(); }