In applications annotated with @EnableWebFluxSecurity, and ReactiveAuthenticationManager beans defined, UserDetailsServiceAutoConfiguration is still instantiating and printing warnings on application startup:
WARN 22054 --- [ main] .s.s.UserDetailsServiceAutoConfiguration :
Using generated security password: 295608be-82b5-4b3b-ab74-b57d93515063
This generated password is for development use only. Your security configuration must be updated before running your application in production.
I think the solution is to add the reactive versions of these bean interfaces to the @ConditionalOnMissingBean annotation. I'm using Spring Boot 2.7.3.
Comment From: mbhave
This was done in #31317 and will be available in Spring Boot 3.0.