GetMapping.value
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.springframework.web.bind.annotation.GetMapping.value(Showing top 5 results out of 315)

origin: ServiceComb/ServiceComb-Java-Chassis

 @Override
 public void process(Object annotation, OperationGenerator operationGenerator) {
  GetMapping mappingAnnotation = (GetMapping) annotation;
  Operation operation = operationGenerator.getOperation();

  // path/value是等同的
  this.processPath(mappingAnnotation.path(), operationGenerator);
  this.processPath(mappingAnnotation.value(), operationGenerator);
  this.processMethod(RequestMethod.GET, operationGenerator);
  this.processConsumes(mappingAnnotation.consumes(), operation);
  this.processProduces(mappingAnnotation.produces(), operation);

  if (StringUtils.isEmpty(operationGenerator.getHttpMethod())
    && StringUtils.isEmpty(operationGenerator.getSwaggerGenerator().getHttpMethod())) {
   throw new Error("HttpMethod must not both be empty in class and method");
  }
 }
}
origin: io.servicecomb/swagger-generator-springmvc

 @Override
 public void process(Object annotation, OperationGenerator operationGenerator) {
  GetMapping mappingAnnotation = (GetMapping) annotation;
  Operation operation = operationGenerator.getOperation();

  // path/value是等同的
  this.processPath(mappingAnnotation.path(), operationGenerator);
  this.processPath(mappingAnnotation.value(), operationGenerator);
  this.processMethod(RequestMethod.GET, operationGenerator);
  this.processConsumes(mappingAnnotation.consumes(), operation);
  this.processProduces(mappingAnnotation.produces(), operation);

  if (StringUtils.isEmpty(operationGenerator.getHttpMethod())
    && StringUtils.isEmpty(operationGenerator.getSwaggerGenerator().getHttpMethod())) {
   throw new Error("HttpMethod must not both be empty in class and method");
  }
 }
}
origin: AlexFalappa/nb-springboot

extractMethodLevelMappings(elementUrls, concatValues(getMapping.value(), getMapping.path()),
    new RequestMethod[]{RequestMethod.GET});
origin: ApacheInfra/ServiceComb-Java-Chassis

 @Override
 public void process(Object annotation, OperationGenerator operationGenerator) {
  GetMapping mappingAnnotation = (GetMapping) annotation;
  Operation operation = operationGenerator.getOperation();

  // path/value是等同的
  this.processPath(mappingAnnotation.path(), operationGenerator);
  this.processPath(mappingAnnotation.value(), operationGenerator);
  this.processMethod(RequestMethod.GET, operationGenerator);
  this.processConsumes(mappingAnnotation.consumes(), operation);
  this.processProduces(mappingAnnotation.produces(), operation);

  if (StringUtils.isEmpty(operationGenerator.getHttpMethod())
    && StringUtils.isEmpty(operationGenerator.getSwaggerGenerator().getHttpMethod())) {
   throw new Error("HttpMethod must not both be empty in class and method");
  }
 }
}
origin: apache/incubator-servicecomb-java-chassis

 @Override
 public void process(Object annotation, OperationGenerator operationGenerator) {
  GetMapping mappingAnnotation = (GetMapping) annotation;
  Operation operation = operationGenerator.getOperation();

  // path/value是等同的
  this.processPath(mappingAnnotation.path(), operationGenerator);
  this.processPath(mappingAnnotation.value(), operationGenerator);
  this.processMethod(RequestMethod.GET, operationGenerator);
  this.processConsumes(mappingAnnotation.consumes(), operation);
  this.processProduces(mappingAnnotation.produces(), operation);

  if (StringUtils.isEmpty(operationGenerator.getHttpMethod())
    && StringUtils.isEmpty(operationGenerator.getSwaggerGenerator().getHttpMethod())) {
   throw new Error("HttpMethod must not both be empty in class and method");
  }
 }
}
org.springframework.web.bind.annotationGetMappingvalue

Popular methods of GetMapping

  • <init>
  • path
  • consumes
  • produces

Popular classes and methods

  • setRequestProperty (URLConnection)
    Sets the value of the specified request header field. The value will only be used by the current URL
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • GridBagLayout (java.awt)
  • Window (java.awt)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Pattern (java.util.regex)
    Emulation of the Pattern class, uses RegExp as internal implementation.
  • JComboBox (javax.swing)

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)