首页 > 解决方案 > Spring Boot requestDataValueProcessor 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. 问题是我无法弄清楚在我的项目中调用该配置的位置。你知道如何找到它吗?

标签: javaspring-bootspring-securityspring-webflux

解决方案


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


推荐阅读