I have just started with microservices and to learn I am working on this project
The problem is although my services are registered at Eureka Server.
OpenFeing is not picking up the url. It is picking up the service name instead for the url.
The Problem

Check registered services
Application Properties
Server
server.port=8761
spring.application.name=eureka-server
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false
Top layer (the one that'll consume other services)
spring.application.name=top-service
server.port=8080
eureka.client.service-url.defaultZone=http://localhost:8761/eureka
Bottomlayer (the one that'll be consumed)
spring.application.name=bottom-service
server.port=8082
eureka.client.service-url.defaultZone=http://localhost:8761/eureka
Open Feign Interface
@FeignClient(value = "bottom-service")
public interface AppFeignClient {
@GetMapping
public String test();
}
Please checkout this github repo in case entire code is required