コード例 #1
0
ファイル: SecurityConfig.java プロジェクト: cuizuoli/gotour
 @Bean
 public UserDetailsService userDetailsService() {
   JdbcUserDetailsManager userDetailsService = new JdbcUserDetailsManager();
   userDetailsService.setDataSource(userDataSource);
   userDetailsService.setEnableGroups(true);
   return userDetailsService;
 }
コード例 #2
0
 @Bean
 public JdbcUserDetailsManager jdbcUserDetailsManager() {
   JdbcUserDetailsManager jdbcUserDetailsManager = new JdbcUserDetailsManager();
   jdbcUserDetailsManager.setDataSource(configureDataSource);
   return jdbcUserDetailsManager;
 }
コード例 #3
0
 @Bean
 public UserDetailsManager userDetailsManager() {
   JdbcUserDetailsManager userDetailsManager = new JdbcUserDetailsManager();
   userDetailsManager.setDataSource(dataSource);
   return userDetailsManager;
 }