tree: 81fcc10dea95d5959e706dfcd4ee504c8268c4f9 [path history] [tgz]
  1. src/
  2. case-configuration.yml
  3. case-versions.conf
  4. pom.xml
  5. README.md
2-advanced/dubbo-samples-triple-rest/dubbo-samples-triple-rest-springmvc/README.md

Dubbo Triple Rest Spring Web Example

This example shows how to export rest API using the spring web annotation in triple protocol.

How to run

Step into ‘dubbo-samples-triple-rest-springmvc’ directory then, run the following command to start application:

mvn spring-boot:run

Run the following command to see server works as expected:

# Passing parameter via query string
curl 'http://localhost:50052/demo/hello?name=world'
# Expected output: "Hello world"
# With double quotes because the default output content-type is 'application/json'

Or, you can visit the following link by using web browser: http://localhost:50052/demo/hello?name=world