Registry / cloud / nacos-client

nacos-client

JSON →
library3.2.0javamavenunverified

Client library for Alibaba Nacos, a dynamic service discovery, configuration management, and service management platform.

<dependency> <groupId>com.alibaba.nacos</groupId> <artifactId>nacos-client</artifactId> <version>3.2.0</version> </dependency>
INSTALL
IMPORT
SIG · NACOS-CLIENT
N
nacos-client
cloudjavav3.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NacosFactory
com.alibaba.nacos.api.NacosFactory

Creates a Nacos ConfigService and retrieves a configuration.

import com.alibaba.nacos.api.NacosFactory; import com.alibaba.nacos.api.config.ConfigService; import java.util.Properties; public class NacosExample { public static void main(String[] args) throws Exception { Properties properties = new Properties(); properties.put("serverAddr", "localhost:8848"); ConfigService configService = NacosFactory.createConfigService(properties); String config = configService.getConfig("dataId", "group", 3000); System.out.println("Config: " + config); } }
Debug
Known issues
breakingVersion 3.x may have breaking changes from 2.x; check migration guide.
fix
Review the Nacos upgrade notes when migrating from 2.x to 3.x.
affects: >=3.0
Upgrade
Version history
3.2.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
30
OpenAI (training)
1
Resources
nacos-client — mvn dependency:get nacos-client · libregistry