Closed
Description
Describe the bug
***************************
APPLICATION FAILED TO START
***************************
Description:
The bean 'webAuthorizationManagerPostProcessor', defined in class path resource [org/springframework/security/config/annotation/web/configuration/ObservationConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/security/config/annotation/web/socket/WebSocketObservationConfiguration.class] and overriding is disabled.
Action:
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
the naming conflict is between:
- https://github.com/spring-projects/spring-security/blob/6.4.0-RC1/config/src/main/java/org/springframework/security/config/annotation/web/configuration/ObservationConfiguration.java#L48
- https://github.com/spring-projects/spring-security/blob/6.4.0-RC1/config/src/main/java/org/springframework/security/config/annotation/web/socket/WebSocketObservationConfiguration.java#L44
To Reproduce
- create an empty boot-3.4.0-RC1 app with spring-web, spring-security, spring-websocket
- add
spring-security-messaging
as dependency - add
@EnableWebSocketSecurity
Expected behavior
app starts
Sample
sample app will be referenced asap, thank you!