Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Spring Boot integrates with Polaris Service Discovery and Governance

License

Notifications You must be signed in to change notification settings

polarismesh/spring-boot-polaris

Repository files navigation

Spring Boot with Polaris

English | 简体中文


Introduction

spring-boot-polaris is the polaris adapter for SpringBoot,application based on SpringBoot can use spring-boot-polaris access polaris quickly.

Spring Cloud Tencent provide an integration solution for Spring Cloud and Tencent middleware, include PolarisMesh.

Please see Spring Cloud Tencent

How to build

spring-boot-polaris uses Maven for most build-related activities, and JDK 1.8 or later versions are supported. You should be able to get off the ground quite quickly by cloning the project you are interested in and typing:

mvn clean install

How to Use

Add maven dependency

These artifacts are available from Maven Central via BOM:

<dependencyManagement>        
   <dependencies>
       <dependency>
           <groupId>com.tencent.polaris</groupId>
           <artifactId>spring-boot-polaris-dependencies</artifactId>
           <version>1.0.0</version>
           <type>pom</type>
           <scope>import</scope>
       </dependency>
   </dependencies>
</dependencyManagement>

add the module in dependencies.

Examples

A spring-boot-polaris-examples module is included in our project for you to get started with spring-boot-polaris quickly. It contains an example, and you can refer to the readme file in the example project for a quick walkthrough.

QuickStart Example