nacos客户端的配置

时间:2025-03-10 08:06:49
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="/POM/4.0.0" xmlns:xsi="http:///2001/XMLSchema-instance" xsi:schemaLocation="/POM/4.0.0 /xsd/maven-4.0."> <modelVersion>4.0.0</modelVersion> <parent> <groupId></groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId></groupId> <artifactId>clould-order</artifactId> <version>0.0.1-SNAPSHOT</version> <name>clould-order</name> <description>Demo project for Spring Boot</description> <properties> <>1.8</> </properties> <dependencies> <dependency> <groupId></groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId></groupId> <artifactId>lombok</artifactId> <optional>true</optional> </dependency> <dependency> <groupId></groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <!-- nacos服务注册/发现--> <dependency> <groupId></groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> </dependency> </dependencies> <!-- 约束整个项目依赖版本 声明 --> <dependencyManagement> <dependencies> <!-- SpringCloud Hoxton.SR1--> <dependency> <groupId></groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>Hoxton.SR1</version> <type>pom</type> <scope>import</scope> </dependency> <!-- Alibaba 2.1.--> <dependency> <groupId></groupId> <artifactId>spring-cloud-alibaba-dependencies</artifactId> <version>2.1.</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <build> <plugins> <plugin> <groupId></groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project>