Skip to content

Commit fb03249

Browse files
Updated for Spring Boot 1.4
1 parent b8d099f commit fb03249

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/main/java/com/naturalprogrammer/spring/tutorial/config/SecurityConfig.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,12 @@
11
package com.naturalprogrammer.spring.tutorial.config;
22

3-
import org.springframework.beans.factory.annotation.Autowired;
43
import org.springframework.context.annotation.Configuration;
5-
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
64
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
75
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
8-
import org.springframework.security.core.userdetails.UserDetailsService;
96

107
@Configuration
118
public 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

0 commit comments

Comments
 (0)