File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
src/main/java/com/naturalprogrammer/spring/tutorial/config Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 11package com .naturalprogrammer .spring .tutorial .config ;
22
3- import org .springframework .beans .factory .annotation .Autowired ;
43import org .springframework .context .annotation .Configuration ;
5- import org .springframework .security .config .annotation .authentication .builders .AuthenticationManagerBuilder ;
64import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
75import org .springframework .security .config .annotation .web .configuration .WebSecurityConfigurerAdapter ;
8- import org .springframework .security .core .userdetails .UserDetailsService ;
96
107@ Configuration
118public class SecurityConfig extends WebSecurityConfigurerAdapter {
129
13- @ Autowired
14- private UserDetailsService userDetailsService ;
15-
16- @ Override
17- protected void configure (AuthenticationManagerBuilder builder )
18- throws Exception {
19-
20- builder .userDetailsService (userDetailsService );
21- }
22-
2310 @ Override
2411 protected void configure (HttpSecurity http ) throws Exception {
2512
You can’t perform that action at this time.
0 commit comments