版本:spring-boot-2.1、 spring-security-5.1.1 1:红框部分:只有USER权限的用户能访问/user/** 2:给用户加权限的时候需要加前缀ROLE_ 只需要给用户加ROLE_前缀就可以了。