标签: java oauth-2.0
我想从用户登录(oauth2)时生成的访问令牌中获取用户角色。
@GetMapping("/user-list/{roleId}") @PreAuthorize("hasRole('ROLE_SUPER_ADMIN')") @ApiOperation(value = "Role permission by user") @ApiResponses(value = { @ApiResponse(code = 201, message = "success"),