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

Posted yxyuanxiang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了There was an unexpected error (type=Forbidden, status=403). Forbidden相关的知识,希望对你有一定的参考价值。

这个错误是缺少权限的意思

访问这个路径需要指定的角色,代码中是这样的:
技术图片
主要这里配置的是访问任意路径都需要USER角色

然后数据库角色表中必须是这样的:
技术图片
带有ROLE_前缀!!!
ROLE_USER!!!!!!!!

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







以上是关于There was an unexpected error (type=Forbidden, status=403). Forbidden的主要内容,如果未能解决你的问题,请参考以下文章

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

springboot 集成jsp问题: There was an unexpected error (type=Not Found, status=404). /WEB-INF/jsp/index.j

iOS之There was an internal API error错误

The underlying connection was closed: An unexpected error occurred on a send

成功解决:WARNING: There was an error checking the latest version of pip.

真机调试中"There was an internal API error"错误解决方法