I have a microservice serviceA that uses feign client to access another microservice.
During development, I want to rely on SimpleDiscoveryClient to get an instance of the service running in my docker daemon. If I configure spring.cloud.discovery.client.simple.instances.serviceA[0].uri=http://localhost:8081 then SimpleDiscoveryClient recognizes the serviceA and feign client works.
If I try to configure SimpleDiscoveryClient using yaml as below it doesn't recognize the service:
spring:
cloud:
discovery:
client:
simple:
instances:
serviceA:
- uri: "http://localhost:8081"
This doesn't make sense to me.
I don't want to have an application.properties and application.yml just for that.
Am I missing something?