ribbon.eager-load.enabled=true
ribbon.eager-load.clients=biz1,biz2
clients
是feign
的client
@FeignClient(
value = "biz1",
path = "biz1"
)
public interface FeignBiz1 {}
@FeignClient(
value = "biz2",
path = "biz2-api",
fallback = FeignBiz2Fallback.class
)
public interface FeignBiz2 {}
待续…
参照:微服务预热那些事