error mssage : The bean 'conversionServicePostProcessor', defined in class path resource [org/springframework/security/config/annotation/web/reactive/WebFluxSecurityConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class] and overriding is disabled.

I found out why there are two identical bean in the same package,As long as the reference is made, there will be problems

Comment From: jzheaux

Thanks for reaching out, @ThePoppingCordaDuck. Can you provide a minimal sample that demonstrates the exception?

Comment From: ThePoppingCordaDuck

import org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; When I use this annotation @EnableWebSecurity and implements ErrorWebExceptionHandler . This error will occur.Can't these two be used at the same time ?