java Spring引导请求DataValueProcessor Bean定义冲突
我试图在我的项目中使用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
的依赖。问题是我无法确定在我的项目中调用该配置的位置。你知道怎么找到它吗
# 1 楼答案
运行一个`mvn Dependency:tree,你就能看到你的项目的Dependency树。然后试着找出哪些是这个依赖项的包,哪些是你不需要的