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-docs/src/main/doc-zh/spring-cloud-tencent-polari...

1.4 KiB

Spring Cloud Tencent Polaris Gateway

模块简介

spring-cloud-tencent-polaris-gateway是用于Spring Cloud项目对接服务治理平台Polaris的微服务网关模块。 您可以通过引入依赖即可使用Polaris拓展的微服务网关功能。

功能介绍

元数据传递

支持网关和微服务之间的元数据传递。

快速入门

本章节将介绍如何最简单地在Spring Cloud项目中使用Spring Cloud Tencent Polaris Gateway的功能。 启动微服务之前需要启动Polaris具体启动方式参考Polaris Getting Started

  1. 您可以在项目中加入spring-cloud-tencent-polaris-gateway依赖即可使用Polaris的微服务网关拓展功能意味着您还是需要自行添加微服务网关模块如zuul、spring-cloud-gateway。如Maven项目中在pom中添加如下配置

<dependency>
    <groupId>com.tencent.cloud</groupId>
    <artifactId>spring-cloud-tencent-polaris-gateway</artifactId>
</dependency>
  1. 更加详细的使用方法参考 Polaris Gateway Example

功能使用

元数据传递

其依赖的是spring-cloud-tencent-metadata模块的功能,因此使用上参考Spring Cloud Tencent Metadata即可。