Redeem 3 dias atrás
pai
commit
b8d67d5afd
1 arquivos alterados com 17 adições e 17 exclusões
  1. 17 17
      src/main/resources/bootstrap.yml

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

@@ -15,25 +15,25 @@ spring:
 #      discovery:
 #        enabled: true
 #        service-id: config-server
-#    bus:
-#      trace:
-#        enabled: false # 2021年9月10日取消springcloud中bus总线服务
-#      enabled: false # 2021年9月10日取消springcloud中bus总线服务
+    bus:
+      trace:
+        enabled: false # 2021年9月10日取消springcloud中bus总线服务
+      enabled: false # 2021年9月10日取消springcloud中bus总线服务
 server:
   port: ${SERVER_PORT:9004}
-#eureka:
-#  client:
-#    fetch-registry: false # 取消从注册中心获取服务信息
-#    register-with-eureka: false # 取消注册服务到注册中心
-#    serviceUrl:
-#      defaultZone: http://root:root@${EUREKA_HOST:localhost}:${EUREKA_PORT:8061}/eureka/
-#    metadata-map:
-#      cluster: ribbon
-#  instance:
-#    hostname: system-base-pass
-#    status-page-url: http://${SWAGGER_INDEX:localhost:9002}/swagger-ui.html
-#    prefer-ip-address: true
-#    instance-id: ${spring.cloud.client.ip-address}:${server.port}
+eureka:
+  client:
+    fetch-registry: false # 取消从注册中心获取服务信息
+    register-with-eureka: false # 取消注册服务到注册中心
+    serviceUrl:
+      defaultZone: http://root:root@${EUREKA_HOST:localhost}:${EUREKA_PORT:8061}/eureka/
+    metadata-map:
+      cluster: ribbon
+  instance:
+    hostname: system-base-pass
+    status-page-url: http://${SWAGGER_INDEX:localhost:9002}/swagger-ui.html
+    prefer-ip-address: true
+    instance-id: ${spring.cloud.client.ip-address}:${server.port}
 #禁止调用eureka client获取注册列表信息
 ribbon:
   eureka: