Commit 717bf800a777903bdad1201186059725fbc2e7df

Authored by 李淦唐
1 parent a9a8b862

修改ribbon.eureka.enabled为true,并加注释

Showing 1 changed file with 3 additions and 1 deletions
gateway.yml
... ... @@ -21,9 +21,11 @@ zuul:
21 21 users:
22 22 url: http://user-service:16100
23 23  
  24 +#这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
  25 +#为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
24 26 ribbon:
25 27 eureka:
26   - enabled: false
  28 + enabled: true
27 29  
28 30 eureka:
29 31 instance:
... ...