Example #1
0
 @Bean
 public UserDetailsService userDetailsService() {
   JdbcUserDetailsManager userDetailsService = new JdbcUserDetailsManager();
   userDetailsService.setDataSource(userDataSource);
   userDetailsService.setEnableGroups(true);
   return userDetailsService;
 }
 @Bean
 public JdbcUserDetailsManager jdbcUserDetailsManager() {
   JdbcUserDetailsManager jdbcUserDetailsManager = new JdbcUserDetailsManager();
   jdbcUserDetailsManager.setDataSource(configureDataSource);
   return jdbcUserDetailsManager;
 }
 @Bean
 public UserDetailsManager userDetailsManager() {
   JdbcUserDetailsManager userDetailsManager = new JdbcUserDetailsManager();
   userDetailsManager.setDataSource(dataSource);
   return userDetailsManager;
 }