Java技术文章共26篇 第3页
Spring Security 使用logoutUrl和logoutSuccessUrl跳转显示404异常错误-明恒博客

Spring Security 使用logoutUrl和logoutSuccessUrl跳转显示404异常错误

解决方案 因为 spring security 在开启 csrf 防护的情况下,/logout 必须是以 POST 方法提交才行,<a> 标签请求是 GET 方法,所以报 404 1.很有可能开启了CSRF防护,可以关闭【不建议】 htt...
SpringSecurity在前端Thyemleaf页面中获取登录的用户名-明恒博客

SpringSecurity在前端Thyemleaf页面中获取登录的用户名

引入maven依赖 <dependency> <groupId>org.thymeleaf.extras</groupId> <artifactId>thymeleaf-extras-springsecurity5</artifactId> <version>3.0.4.RELEASE</version> &...
你的明明呐丶的头像-明恒博客你的明明呐丶2年前
01155