diff --git a/config/src/main/java/org/springframework/security/config/annotation/web/socket/EnableWebSocketSecurity.java b/config/src/main/java/org/springframework/security/config/annotation/web/socket/EnableWebSocketSecurity.java index e80671aa50c..8b10c3bc23d 100644 --- a/config/src/main/java/org/springframework/security/config/annotation/web/socket/EnableWebSocketSecurity.java +++ b/config/src/main/java/org/springframework/security/config/annotation/web/socket/EnableWebSocketSecurity.java @@ -37,7 +37,7 @@ * public class WebSocketSecurityConfig { * * @Bean - * AuthorizationManager<Message<?>> (MessageMatcherDelegatingAuthorizationManager.Builder messages) { + * AuthorizationManager<Message<?>> authorizationManager(MessageMatcherDelegatingAuthorizationManager.Builder messages) { * messages.simpDestMatchers("/user/queue/errors").permitAll() * .simpDestMatchers("/admin/**").hasRole("ADMIN") * .anyMessage().authenticated();