java - 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
. 问题是我无法弄清楚在我的项目中调用该配置的位置。你知道如何找到它吗?
解决方案
运行一个 `mvn dependency:tree,你将能够看到你的项目的依赖树。然后尝试找出哪些是此依赖项的包,并删除您不需要的包。
推荐阅读
- java - 爪哇。套接字、输入流、输入流读取器。如何找到缓冲区中数据量的值
- javascript - Javascript unshift(),递归和制作数组
- python - 当我在 pandas 中使用 bar 类型 barh 时,y 轴中的值以降序显示,而不是从顶部升序显示
- java - 用键值映射嵌套对象 // Jackson
- bert-language-model - 如何为 BertMasked 语言模型提供合成输入嵌入
- python - 在追加到数组之前添加/更新值+键
- flutter - Flutter:每次运行 Flutter 应用程序时都会重置 Chrome 设置
- c - 如何将 C 结构反序列化为 Rust 结构
- angular - 如何将 Node_modules 文件夹添加到 github 存储库?
- java - 从数组中删除对象(Java)