HUJIANGUO 3 年之前
父節點
當前提交
0b2499351f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/resources/bootstrap.yml

+ 2 - 2
src/main/resources/bootstrap.yml

@@ -17,8 +17,8 @@ eureka:
   client:
     service-url:
       defaultZone: http://root:root@${EUREKA_HOST:172.16.33.161}:${EUREKA_PORT:8081}/eureka/
-    register-with-eureka: false #表示向EurekaServer注册自己 默认为true
-    fetch-registry: false #是否从EurekaServer抓取已有的注册信息,默认为true,单节点无所谓,集群必须设置为true才能配合ribbon使用负载均衡
+    register-with-eureka: true #表示向EurekaServer注册自己 默认为true
+    fetch-registry: true #是否从EurekaServer抓取已有的注册信息,默认为true,单节点无所谓,集群必须设置为true才能配合ribbon使用负载均衡
 
   instance:
     prefer-ip-address: true