|
|
|
|
@ -103,10 +103,10 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { |
|
|
|
|
/** |
|
|
|
|
* 密码加密器 |
|
|
|
|
*/ |
|
|
|
|
@Bean |
|
|
|
|
public PasswordEncoder passwordEncoderBean() { |
|
|
|
|
return new BCryptPasswordEncoder(); |
|
|
|
|
} |
|
|
|
|
// @Bean
|
|
|
|
|
// public PasswordEncoder passwordEncoderBean() {
|
|
|
|
|
// return new BCryptPasswordEncoder();
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 权限投票访问决策管理器 |
|
|
|
|
@ -189,7 +189,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { |
|
|
|
|
|
|
|
|
|
// 退出登录
|
|
|
|
|
http.logout() |
|
|
|
|
.logoutUrl("/logout") |
|
|
|
|
.logoutUrl("/api/logout") |
|
|
|
|
.deleteCookies("JSESSIONID") |
|
|
|
|
.logoutSuccessHandler(((request, response, authentication) -> { |
|
|
|
|
PrintWriter out = response.getWriter(); |
|
|
|
|
|