Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Boot requestDataValueProcessor Bean Definition Conflict

I try to use SpringWebFluxSecurityin my project, but I got this error when compiling

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.

I know that I have to remove the dependency to WebMvcSecurityConfiguration. The problem is I cannot figure out where that configuration is being called in my project. Do you have any idea how to find it?

like image 638
Rafi Ramadhan Avatar asked Nov 16 '22 13:11

Rafi Ramadhan


1 Answers

Run a `mvn dependence:tree and you'll be able to see the dependence tree of your project. Then try to find out which are the packages of this dependencies and removes that you don't need.

like image 133
Pablo Castro Avatar answered May 26 '23 20:05

Pablo Castro