Use authenticationManager Bean in 5.7.1 ver

This commit is contained in:
hou27
2022-06-10 22:52:27 +09:00
parent c5827d07fa
commit baa59f24a5
4 changed files with 33 additions and 9 deletions

View File

@@ -17,10 +17,6 @@ import org.springframework.security.web.authentication.UsernamePasswordAuthentic
public class JwtSecurityConfig extends SecurityConfigurerAdapter<DefaultSecurityFilterChain, HttpSecurity> {
private final JwtTokenProvider jwtTokenProvider;
// public JwtSecurityConfig(JwtTokenProvider jwtTokenProvider) {
// this.jwtTokenProvider = jwtTokenProvider;
// }
@Override
public void configure(HttpSecurity http) throws Exception {
JwtTokenFilter customFilter = new JwtTokenFilter(jwtTokenProvider);