You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spring-cloud-tencent/spring-cloud-tencent-examples/polaris-quickstart-example
andrewshan 4fad5e37e5
feat: add quick-start examples, change polaris-java to 1.2.1
3 years ago
..
src/main feat: add quick-start examples, change polaris-java to 1.2.1 3 years ago
README-zh.md feat: add quick-start examples, change polaris-java to 1.2.1 3 years ago
README.md feat: add quick-start examples, change polaris-java to 1.2.1 3 years ago
pom.xml feat: add quick-start examples, change polaris-java to 1.2.1 3 years ago

README.md

Spring Cloud Polaris Quickstart example

Example Introduction

This example shows how to make application integrated with spring-cloud-tencent rapidly.

Instruction

Configuration

Modify bootstrap.yml, {ip} and {port} is the address of polaris server.

spring:
  application:
    name: EchoService
  cloud:
    polaris:
      address: grpc://${ip}:${port}

Launching Example

Launching Application

  • Start in IDEA

Find main class EchoServiceApplication in project polaris-quickstart-example, and execute the main method.

  • Start by fatjar

Run build command in spring-cloud-tencent-examples/polaris-quickstart-example:

mvn clean package

find the generated fatjar, run:

java -jar ${app.jar}

${app.jar} replace to the built jar name.

Verify

Invoke by http call

curl -L -X GET 'http://localhost:47080/quickstart/feign?msg=hello_world''

expecthello_world