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

 

The reason is that the defined role names do not match
Path permission rule matching configuration is :ADMIN here program can not configure ROLE_ role or directly report the BUG
The user’s permissions are configured in custom permission validation :ROLE_ADMIN needs to be preceded by ROLE_
This pit stepped on twice This design is very wanted to make fun of
 
 
 
 

Read More: