Spring Boot requestDataValueProcessor Bean 定义冲突

Raf*_*han 7 java spring-security spring-boot spring-webflux

我尝试在我的项目中使用SpringWebFluxSecurity,但编译时出现此错误

The bean 'requestDataValueProcessor', defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebMvcSecurityConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/security/config/annotation/web/reactive/WebFluxSecurityConfiguration.class] and overriding is disabled.

我知道我必须删除对WebMvcSecurityConfiguration. 问题是我无法弄清楚在我的项目中调用该配置的位置。您知道如何找到它吗?

小智 2

运行`mvn dependency:tree,您将能够看到项目的依赖树。然后尝试找出哪些是该依赖项的包,并删除不需要的包。