[SCB-2862]able to upload with List form parameters (#4235)

5 files changed
tree: 6f756900ca865fd5f5bf05909c113175c2e13a97
  1. .github/
  2. ci/
  3. clients/
  4. common/
  5. core/
  6. coverage-reports/
  7. demo/
  8. dependencies/
  9. distribution/
  10. dynamic-config/
  11. edge/
  12. etc/
  13. foundations/
  14. governance/
  15. handlers/
  16. huawei-cloud/
  17. metrics/
  18. parents/
  19. providers/
  20. samples/
  21. service-registry/
  22. solutions/
  23. spring-boot/
  24. swagger/
  25. tracing/
  26. transports/
  27. .gitignore
  28. doap_ServiceComb_Java-Chassis.rdf
  29. LICENSE
  30. NOTICE
  31. pom.xml
  32. README.md
  33. README_ZH.md
README.md

Java Chassis 中文 Maven Central License

Apache ServiceComb Java Chassis is a Software Development Kit (SDK) for rapid development of microservices in Java, providing service registration, service discovery, dynamic routing, and service management features.

releases

Release TrainLatest VersionCompiled JDK VersionTested JDK VersionOpen APINotes
Java Chassis 33.0.1OpenJDK 17OpenJDK 173.0.xDepends on Spring Boot 3
Java Chassis 22.8.14OpenJDK 8OpenJDK 8, 11, 172.0.xDepends on Spring 5
Java Chassis 11.3.11OpenJDK 8OpenJDK 82.0.xEnd of Support

NOTICE: Since Open API 3.0.x is not compatible with 2.0.x, Java Chassis 2 and Java Chassis 1 can not work together with Java Chassis 3. All related consumers, providers and edge service need use Java Chassis 3 when upgrading.

NOTICE: Java Chassis 1 reached its end of support now after it's first release from 2018.

Why use Java Chassis

  • High performance

    The transport capability of Java Chassis is based on Vert.x, which enables Java Chassis to process massive requests with relatively less hardware resources, and support reactive develop style.

  • Native support for OpenAPI

    Java Chassis describes the APIs of the microservices via Swagger natively, to help developers to design microservices that comply to OpenAPI standard.

  • Flexible develop style

    Java Chassis allows developers to develop their microservice APIs in SpringMVC/JAX-RS/Transparent RPC styles, and to send the request in RPC/RestTemplate styles. And there are three kind of build-in transport mode: Rest over Vertx/Rest over Servlet/Highway. All of these features can be combined and replaced easily, because they are decoupled and all based on the Swagger schema, which can provide high flexibility.

  • Out-of-box microservice governance features

    Java Chassis provides a lot of features for microservice governance and monitor.

Quick Start (Spring MVC)

Provider service:

@RestSchema(schemaId = "ProviderController")
@RequestMapping(path = "/")
public class ProviderController {
  @GetMapping("/sayHello")
  public String sayHello(@RequestParam("name") String name) {
    return "Hello " + name;
  }
}

Consumer service:

Declare Provider service interface to match the Provider method signature. (Method name, return type, parameter name, parameter type)

public interface ProviderService {
  String sayHello(String name);
}

Invoke Provider service with RPC

@RestSchema(schemaId = "ConsumerController")
@RequestMapping(path = "/")
public class ConsumerController {
  @RpcReference(schemaId = "ProviderController", microserviceName = "provider")
  private ProviderService providerService;

  // consumer service which delegate the implementation to provider service.
  @GetMapping("/sayHello")
  public String sayHello(@RequestParam("name") String name) {
    return providerService.sayHello(name);
  }
}

Try out this example here .

Documentation

Project documentation is available on the ServiceComb Java Chassis Developer Guide.

Building

You don’t need to build from source to use Java Chassis (binaries in apache nexus ), but if you want to try out the latest and greatest, Java Chassis can be easily built with the maven. You also need JDK 17.

  mvn clean install

The first build may take a longer than expected as Maven downloads all the dependencies.

Automated Testing

To build the docker image and run the integration tests with docker, you can use maven docker profile

  mvn clean install -Pdocker -Pit

If you are using docker machine, please use the following command

  mvn clean install -Pdocker -Pit -Pdocker-machine

Contact

Bugs: issues

mailing list: subscribe dev

Contributing

See CONTRIBUTING for details on submitting patches and the contribution workflow.

License

Licensed under an Apache 2.0 license.