# security-demo **Repository Path**: jason_huang9529/security-demo ## Basic Information - **Project Name**: security-demo - **Description**: Spring Security JWT 进行动态 URL 权限验证 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-12 - **Last Updated**: 2021-06-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### Spring Security JWT 进行动态 URL 权限验证 用户: - 用户`admin`密码`admin`, 拥有角色 `ROLE_1`、`ROLE_3`, - 用户`user`密码`user` 角色: - 角色`ROLE_1`对应权限(资源)`/hello1/**` - 角色`ROLE_2`对应权限(资源)`/hello2` - 角色`ROLE_3`对应权限(资源)`/hello3` 测试: 1. 匿名或 Token 错误: 只能访问 `/hello4` 2. 用户`user`: 只能访问 `/hello4`、`/hello3/sub`、`/hello5` 3. 用户`admin`: 不能访问`/hello2`