@Autowired DataSource dataSource; @Bean public PasswordEnprer passwordEnprer() { return new BCryptPasswordEnprer(); } @Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth.jdbcAuthentication().dataSource(dataSource).passwordEnprer(passwordEnprer()); }


