我尝试使用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
的依赖。问题是我无法弄清楚在我的项目中调用该配置的位置。您知道如何找到它吗?
最佳答案
运行`mvn dependency:tree,您将能够看到项目的依赖树。然后尝试找出哪些是该依赖项的包,并删除不需要的包。
关于java - Spring Boot requestDataValueProcessor Bean 定义冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55253692/