November 2017
Intermediate to advanced
542 pages
14h 24m
English
We'll modify the SecurityConfig.java file to declare that we're using a JDBC UserDetailsManager implementation, instead of the Spring Security in-memory UserDetailsService implementation that we configured in Chapter 2, Getting Started with Spring Security. This is done with a simple change to the UserDetailsManager declaration, as follows:
//src/main/java/com/packtpub/springsecurity/configuration/SecurityConfig.java … @Bean @Override public UserDetailsManager userDetailsService() { JdbcUserDetailsManager manager = new JdbcUserDetailsManager(); manager.setDataSource(dataSource); return manager; } …
We replace the previous configure(AuthenticationManagerBuilder) method, along with all of ...
Read now
Unlock full access