java - Spring Boot requestDataValueProcessor Bean 定义冲突

标签 java spring-boot spring-security 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 的依赖。问题是我无法弄清楚在我的项目中调用该配置的位置。您知道如何找到它吗?

最佳答案

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

关于java - Spring Boot requestDataValueProcessor Bean 定义冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55253692/

相关文章:

java - 使用spring data从Neo4j查询数据始终返回null

java - RabbitMQ 消息在消费时不会出队

java - 如何使用 Spring 安全性和 Restful Web 服务验证数据库中的凭据?

java - 无法对单元格表列进行排序

java - future 任务不起作用

spring - 使用方法在运行时动态创建 Spring bean

java - Spring 致动器 '/auditevents'端点返回404

spring websocket 与 spring security 启动失败, "No bean named ' stompWebSocketHandlerMapping'已定义'

java - 我如何限制使用它们的子类的抽象类中的方法参数?

java - 将电子表格转换为 Javabean