适配eureka

pull/1/head
tanghc 5 years ago
parent 68e80ba984
commit 2e6dca1467
  1. 3
      sop-website/pom.xml
  2. 8
      sop-website/src/main/resources/application-dev.properties

@ -40,7 +40,8 @@
<dependency> <dependency>
<groupId>org.springframework.cloud</groupId> <groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> <artifactId>spring-cloud-alibaba-nacos-discovery</artifactId>
<version>0.9.0.RELEASE</version>
</dependency> </dependency>
<dependency> <dependency>

@ -2,14 +2,12 @@ server.port=8083
spring.application.name=website-server spring.application.name=website-server
# ------- 需要改的配置 ------- # ------- 需要改的配置 -------
eureka.url=http://localhost:1111/eureka/ # nacos地址
nacos.url=127.0.0.1:8848
# ------- 需要改的配置end ------- # ------- 需要改的配置end -------
# eureka注册中心
eureka.client.serviceUrl.defaultZone=${eureka.url}
## nacos cloud配置 ## 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 api.url-test=http://open-test.yourdomain.com

Loading…
Cancel
Save