fix:修复项目启动异常

This commit is contained in:
haoxr 2020-11-18 17:26:52 +08:00
parent 664b03e2c9
commit 48d97c9eec
2 changed files with 1 additions and 14 deletions

View File

@ -1,26 +1,15 @@
package com.youlai.auth.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.actuate.autoconfigure.security.servlet.EndpointRequest;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.*;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.core.CredentialsContainer;
import org.springframework.security.crypto.factory.PasswordEncoderFactories;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.web.authentication.AuthenticationFailureHandler;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.Map;
@Configuration
@EnableWebSecurity

View File

@ -66,8 +66,6 @@ public class UserDetailsServiceImpl implements UserDetailsService {
throw new CredentialsExpiredException("该账户的登录凭证已过期,请重新登录!");
}
return user;
}
}