The clientui serves webpages, using data from the 3 microservices.
I succesfully setted up ribbon to load balance between 2 instances of "microservice-produits". It works when i have this line microservice-produits.ribbon.listOfServers=localhost:9001,localhost:9011
in application.properties of clientui.
Now i'd like to make it work without having to hardcode the microservices url.
This is what i've tried :
with application class :
and pom (clientui) :
Following these answers (Load balancer does not have available server for client):
I tried adding the fetchRegistry line inside application.properties and adding / removing netflix-eureka-client and netflix-eureka-server dependencies inside (clientui) pom.xml
No matter what i always get this :
For info, the eureka console :
So : any idea ??