tencent cloud

Service Registry and Governance

Register and discovery

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-05-07 18:12:22

Scenarios

This document describes how to develop Java applications locally, access Polaris via Apache Dubbo, and implement service registration and discovery.

Prerequisite

Before development, please ensure you have downloaded and installed Java and Maven.

Operation Steps

Step 1: Importing Dependencies

Note:
Please select the appropriate dubbo-polaris-java version based on the Apache Dubbo version.
<dependency>
<groupId>com.tencent.polaris</groupId>
<artifactId>dubbo-registry-polaris</artifactId>
</dependency>

Step 2: Add Polaris Configuration File

Set the registry center address in your Dubbo configuration file:
dubbo.registry.address=polaris://${replace with the Polaris service address}:8091?namespace=test

Step 3: Start the Application

After the application successfully starts, go to the console to view the service registration information, as shown in the figure below:



도움말 및 지원

문제 해결에 도움이 되었나요?

피드백