Probably most of the Spring Boot applications developers know it and use it in their WebSecurityConfigurerAdapter extensions: @Override public void configure(AuthenticationManagerBuilder auth) throws Exception { auth.userDetailsService(userDetailsService).passwordEncoder(passwordEncoder()); } but has anyone investigated the possibility of the default passwordEncoder bean extraction from the userDetailsService after set it in this way as above? If the passwordEncoder bean were needed in userDetailService , it would seem unnecessary to inject the bean into userDetailService , which has already b