@ShenyuGetMapping("/oauth2/test")
    @ApiDoc(desc = "oauth2/test")
    public OAuth2DTO testRestFul(final HttpServletRequest request) {
        final String token = request.getHeader("Authorization");
        final OAuth2DTO oAuth2DTO = new OAuth2DTO();
        oAuth2DTO.setToken(Objects.isNull(token) ? "no authorization" : token);
        return oAuth2DTO;
    }
Test oauth2 request.
@param request request with the oauth2 headers
@return the oauth2 dto
shenyu-examples/shenyu-examples-springmvc/src/main/java/org/apache/shenyu/examples/springmvc/controller/OrderController.java