| | |
| | | import com.panzhihua.auth.handel.UserLoginSuccessHandler; |
| | | import com.panzhihua.auth.handel.UserLogoutSuccessHandler; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.security.authentication.AuthenticationManager; |
| | | import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; |
| | | import org.springframework.security.config.annotation.web.builders.HttpSecurity; |
| | |
| | | * SpringSecurity配置类 |
| | | * @Author youcong |
| | | */ |
| | | @Configuration |
| | | @EnableWebSecurity |
| | | public class SecurityConfig extends WebSecurityConfigurerAdapter { |
| | | /** |
| | |
| | | @Resource |
| | | private UserAuthenticationProvider userAuthenticationProvider; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 加密方式 |
| | | * @Author youcong |