@GetMapping("/oauth2/test")
    @ShenyuSpringMvcClient("/oauth2/test")
    @ApiDoc(desc = "oauth2/test")
    public OAuth2DTO testRestFul(final ServerHttpRequest request) {
        HttpHeaders headers = request.getHeaders();
        List<String> tokens = headers.get("Authorization");
        OAuth2DTO oAuth2DTO = new OAuth2DTO();
        oAuth2DTO.setToken(Objects.isNull(tokens) ? "no authorization" : tokens.get(0));
        return oAuth2DTO;
    }
Test oauth2 request.
@param request request with the oauth2 headers
@return the oauth2 dto
shenyu-examples/shenyu-examples-http/src/main/java/org/apache/shenyu/examples/http/controller/OrderController.java