1. 注释掉工程和服务模块里的eureka相关依赖
<!--注册中心-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
2. 添加nacos依赖
说明:由于springcloud和springboot对应nacos有对应的版本
版本信息:
<properties>
<nacos.version>2.2.3.RELEASE</nacos.version>
</properties>
依赖包:
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-sta