Commit 81fdf3f1c88810f1e00747533f7bc33ed24643fa

Authored by luotong
1 parent cd083364

修改会ribbon配置

Showing 1 changed file with 6 additions and 13 deletions
class-service.yml
... ... @@ -110,19 +110,12 @@ hystrix:
110 110  
111 111 #这个配置为true则取发现服务的注册地址(服务地址存储在DomainExtractingServerList,由EurekaRibbonClientConfiguration.ribbonServerList()创建)
112 112 #为false取本地配置文件的配置地址(服务地址存储在ConfigurationBasedServerList中,由RibbonClientConfiguration.ribbonServerList()创建)
113   -#ribbon:
114   -# eureka:
115   -# enabled: true
116   -# UseIPAddrForServer: true
117   -# ReadTimeout: 5000
118   -# ConnectTimeout: 10000
119   -
120   -gxb-api-service:
121   - ribbon:
122   - ReadTimeout: 60000
123   - ConnectTimeout: 60000
124   - listOfServers: http://api/gxb-api
125   -
  113 +ribbon:
  114 + eureka:
  115 + enabled: true
  116 + UseIPAddrForServer: true
  117 + ReadTimeout: 5000
  118 + ConnectTimeout: 10000
126 119  
127 120 # 一些公共的常量配置
128 121 apiConfig:
... ...