code: public RequestMethod[] getMethod() {
          if (this.requestMapping != null) {
              return this.requestMapping.method();
          }
          if (this.postMapping != null) {
              return new RequestMethod[]{(RequestMethod.POST)};
          }
          if (this.putMapping != null) {
              return new RequestMethod[]{(RequestMethod.PUT)};
          }
          if (this.deleteMapping != null) {
              return new RequestMethod[]{(RequestMethod.DELETE)};
          }
          if (this.getMapping != null) {
              return new RequestMethod[]{(RequestMethod.GET)};
          }
          if (this.patchMapping!= null) {
              return new RequestMethod[]{(RequestMethod.PATCH)};
          }
          return null;
      }
docs: Get method request method [ ].
  
  @return the request method [ ]