mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-12 07:02:14 +08:00
适配eureka
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user