spring-cloud / spring-cloud-netflix

Integration with Netflix OSS components
http://cloud.spring.io/spring-cloud-netflix/
Apache License 2.0
4.87k stars 2.44k forks source link

feign how to assign the ip #2837

Closed fengyws closed 6 years ago

fengyws commented 6 years ago

with eureka,feign can not assign the ip. when test, i want to assign the ip, how to do ?

ryanjbaxter commented 6 years ago

Please provide more details, including a sample that reproduces the problem you are experiencing.

fengyws commented 6 years ago

1523514911 1 like this, the RONCOO-CLOUD-USER-SERVICE has 3, feign invoking it for RoundRobin, but i want feign can assign the one

ryanjbaxter commented 6 years ago

Are you asking how to specify a single instance for Feign to use instead using all instances?

spencergibb commented 6 years ago

during tests you can make ribbon use a static list if that's what you are asking.

fengyws commented 6 years ago

thanks,i see