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