springcloud-ribbon的使用
2020-12-13 03:56
标签:imp ram server oca load yml net def Fix 在ribbon的springboot project import dependency jar the stores is on you dynamic define,and then are fixed。the listOfServers is fixed,the value is the ip and port you repersent。 springcloud-ribbon的使用 标签:imp ram server oca load yml net def Fix 原文地址:https://www.cnblogs.com/fuckingPangzi/p/11096401.html
spring-cloud-starter-ribbon
best select version is 1.4.0
let is look resources configuration file application.yml#with two client happy
server:
port: 9000
spring:
application:
name: ribbon-consumer
stores:
ribbon:
listOfServers: localhost:1001,localhost:1002
NFLoadBalancerRuleClassName: com.netflix.loadbalancer.RandomRule
上一篇:C和C++ 变量内存
下一篇:PHP生成器Generators