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

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

 

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

 

The reason is that the definition of the role name does not match

Path permission rule is configured to match: ADMIN program ape can not be configured at the beginning ROLE_ role here otherwise directly reported BUG

Custom configuration permissions necessary to verify the user's permissions: ROLE_ADMIN need to add at the beginning ROLE_

It pits the two stepped back to this design would like to Tucao

Guess you like

Origin www.cnblogs.com/weizhxa/p/12038623.html