From 2e6dca1467a97aaf2367a8e3f0d04666da1f1d9e Mon Sep 17 00:00:00 2001 From: tanghc Date: Sun, 29 Sep 2019 19:10:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8Deureka?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sop-website/pom.xml | 3 ++- sop-website/src/main/resources/application-dev.properties | 8 +++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/sop-website/pom.xml b/sop-website/pom.xml index 7cf06123..f1afe673 100644 --- a/sop-website/pom.xml +++ b/sop-website/pom.xml @@ -40,7 +40,8 @@ org.springframework.cloud - spring-cloud-starter-netflix-eureka-client + spring-cloud-alibaba-nacos-discovery + 0.9.0.RELEASE diff --git a/sop-website/src/main/resources/application-dev.properties b/sop-website/src/main/resources/application-dev.properties index 3c02a777..2fc10b3d 100644 --- a/sop-website/src/main/resources/application-dev.properties +++ b/sop-website/src/main/resources/application-dev.properties @@ -2,14 +2,12 @@ server.port=8083 spring.application.name=website-server # ------- 需要改的配置 ------- -eureka.url=http://localhost:1111/eureka/ +# nacos地址 +nacos.url=127.0.0.1:8848 # ------- 需要改的配置end ------- -# eureka注册中心 -eureka.client.serviceUrl.defaultZone=${eureka.url} - ## nacos cloud配置 -#spring.cloud.nacos.discovery.server-addr=${nacos.url} +spring.cloud.nacos.discovery.server-addr=${nacos.url} # 测试环境 api.url-test=http://open-test.yourdomain.com