首页 > 编程语言 > 详细

spring security There was an unexpected error (type=Forbidden, status=403).

时间:2019-12-14 13:24:46      阅读:1328      评论:0      收藏:0      [点我收藏+]

https://blog.csdn.net/qq_27093097/article/details/83190240

 

spring security There was an unexpected error (type=Forbidden, status=403).

 

技术分享图片

原因是定义的角色名称不匹配

路径权限规则匹配中配置的是:ADMIN 这里程序猿不可以配置ROLE_开头的角色 不然直接报BUG

自定义权限验证中就要配置用户的权限:ROLE_ADMIN 需要加上ROLE_开头

这坑踩了两回 这设计很想吐槽

spring security There was an unexpected error (type=Forbidden, status=403).

原文:https://www.cnblogs.com/weizhxa/p/12038623.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!