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:



帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈