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/README-zh.md

4.1 KiB

Spring Cloud Tencent

Wiki Maven Central Contributors License

Test with Junit codecov.io

English | 简体中文

README:

更多文档请查看Wiki

介绍

Spring Cloud Tencent 是基于 Spring Cloud SPI 实现的一站式微服务解决方案。通过集成 Spring Cloud 和腾讯中间件,让分布式服务和微服务的开发、测试、发布和运维变得更加简单。

服务发现和治理

Spring Cloud Tencent 集成 Spring Cloud 和北极星。北极星是一个支持多语言和多框架的服务发现和治理平台。

Spring Cloud 集成北极星可以解决以下问题:

  • 服务管理:服务发现、服务注册、健康检查
  • 流量控制:可自定义的流量路由、负载均衡、限频限流、访问控制
  • 故障容错:服务和接口熔断和降级、实例熔断和切换
  • 配置管理:版本管理、灰度发布、动态更新

如何构建

运行以下命令进行构建。

Linux and Mac

./mvnw clean package

Windows

.\mvnw.cmd clean package

如何使用

Spring Cloud Tencent 所有组件都已上传到 Maven 中央仓库,只需要引入依赖即可。

注意:

支持Spring Cloud 版本2023.0、2022.0、2021.0、2020.0、Hoxton。

Spring Cloud Tencent 的版本列表可以查看 Spring Cloud Tencent 版本管理

例如:

<!-- add spring-cloud-tencent bom  -->
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>com.tencent.cloud</groupId>
            <artifactId>spring-cloud-tencent-dependencies</artifactId>
            <version>${LATEST_VERSION_FROM_VERSION_MANAGEMENT_IN_WIKI}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>    
                 
<!-- add spring-cloud-starter-tencent-polaris-discovery dependency  -->
<dependencies>
    <dependency>
        <groupId>com.tencent.cloud</groupId>
        <artifactId>spring-cloud-starter-tencent-polaris-discovery</artifactId>
    </dependency>
</dependencies>

使用示例

北极星为开发者提供体验环境:

在 spring-cloud-tencent-example 项目里,北极星服务端地址默认配置为grpc://119.91.66.223:8091

交流群

请扫描下方二维码添加微信并发送“Spring Cloud Tencent”申请加群。

Stargazers over time