diff --git a/sop-gateway/src/main/resources/application-dev.properties b/sop-gateway/src/main/resources/application-dev.properties index 14de0762..53934c55 100644 --- a/sop-gateway/src/main/resources/application-dev.properties +++ b/sop-gateway/src/main/resources/application-dev.properties @@ -1,4 +1,5 @@ server.port=8081 +spring.application.name=api-gateway # ------- 需要改的配置 ------- # mysql数据库账号 @@ -13,7 +14,6 @@ zookeeper.url=localhost:2181 zipkin.url=http://127.0.0.1:9411/ # ------- 需要改的配置end ------- -spring.application.name=api-gateway # 入口地址,不用改,默认是/zuul zuul.servlet-path=/api # 禁用默认的过滤器,不能删,不用改 diff --git a/sop-registry/src/main/resources/application-dev.properties b/sop-registry/src/main/resources/application-dev.properties index c79c2cec..6fd1a8e5 100644 --- a/sop-registry/src/main/resources/application-dev.properties +++ b/sop-registry/src/main/resources/application-dev.properties @@ -1,12 +1,6 @@ server.port=1111 spring.application.name=sop-registry -# ------- 需要改的配置 ------- - -# eureka注册中心地址 -eureka.url=http://localhost:1111/eureka/ -# ------- 需要改的配置end ------- - eureka.client.fetch-registry=false eureka.client.register-with-eureka=false -eureka.client.serviceUrl.defaultZone=${eureka.url} +eureka.client.serviceUrl.defaultZone=http://localhost:1111/eureka/ diff --git a/sop-website/website-server/src/main/resources/application-dev.properties b/sop-website/website-server/src/main/resources/application-dev.properties index 4fa2eedf..2ad408e2 100644 --- a/sop-website/website-server/src/main/resources/application-dev.properties +++ b/sop-website/website-server/src/main/resources/application-dev.properties @@ -12,7 +12,7 @@ nacos.url=127.0.0.1:8848 # ------- 需要改的配置end ------- -# 注册中心地址,根据实际情况改,这里只是参数,并不会去注册 +# eureka注册中心地址,这里只是参数,并不会去注册 registry.eureka-server-addr=${eureka.url} # nacos服务器地址 registry.nacos-server-addr=${nacos.url}