-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6.4.0-RC1 - BeanDefinitionOverrideException: Invalid bean definition with name 'webAuthorizationManagerPostProcessor' #16011
Comments
add spring-security-messaging, @EnableWebSocketSecurity
I add |
hmm.. just added (gradle-) cleaned the project, re-ran multiple times. diffIndex: src/main/java/com/example/demo/DemoApplication.java
<+>UTF-8
===================================================================
diff --git a/src/main/java/com/example/demo/DemoApplication.java b/src/main/java/com/example/demo/DemoApplication.java
--- a/src/main/java/com/example/demo/DemoApplication.java (revision 3ff50e46fc8852dc867b458892b65cb98b01f9a5)
+++ b/src/main/java/com/example/demo/DemoApplication.java (date 1730308768835)
@@ -3,7 +3,9 @@
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.web.socket.EnableWebSocketSecurity;
+import org.springframework.web.socket.config.annotation.EnableWebSocket;
+@EnableWebSocket
@EnableWebSocketSecurity
@SpringBootApplication
public class DemoApplication { console out (same failure)
to make sure this is not a "runs-on-my-machine" kinda issue:
|
My bad, I work with wrong version, I confirm this version throws error |
Can this issue be investigated before the releases of spring-security 6.4.0 and spring-boot 3.4.0 scheduled for next week? This problem breaks applications using both web and web sockets stacks. |
Describe the bug
the naming conflict is between:
To Reproduce
spring-security-messaging
as dependency@EnableWebSocketSecurity
Expected behavior
app starts
Sample
sample app will be referenced asap, thank you!
The text was updated successfully, but these errors were encountered: