Spring boot 弹簧靴注销

Spring boot 弹簧靴注销,spring-boot,Spring Boot,我面临spring boot注销的问题 http.authorizeRequests().antMatchers(“/**”) .permitAll()和() .logout().logoutRequestMatcher( 新的AntPathRequestMatcher(“/logout”)) .logoutSuccessUrl(“/”); 我已经在WebSecurityConfig类中添加了此代码 它只是引用页面并返回主页(页面重定向逻辑出现在JS代码中) 我也试过这个 http.logou

我面临spring boot注销的问题

http.authorizeRequests().antMatchers(“/**”)
.permitAll()和()
.logout().logoutRequestMatcher(
新的AntPathRequestMatcher(“/logout”))
.logoutSuccessUrl(“/”);
我已经在WebSecurityConfig类中添加了此代码

它只是引用页面并返回主页(页面重定向逻辑出现在JS代码中)

我也试过这个

http.logout()
.logoutUrl(“/logout”)
.logoutSuccessUrl(“/”)
.invalidateHttpSession(真)
.删除cookies(“CSI会话”);

但是不起作用。

应用程序中的
“/”
映射到什么?您是否配置了欢迎文件?您的重定向无效或spring注销?你能检查一下这个吗?可能是因为你的角度控制器逻辑。谢谢。找到了修复方法。这是返回URL的问题,因为它是基于SSO的。