Spring Security出现403,org.springframework.security.access.AccessDeniedException: Access is denied

1. The path is wrong.
Insert picture description here
Keep the path at all times
Insert picture description here
. 2. The case of the role information is inconsistent. The role information configured in spring-security.xml is uppercase and the lowercase is passed.
When the data is transferred:
Insert picture description here
configuration in spring-security.xml:

Insert picture description here
Convert lowercase to uppercase by using the toUpperCase() method:
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_42478365/article/details/107394603