How to use OpenFeign locally in Spring Cloud Kubernetes?

3/30/2020

I'm using OpenFeign and Spring Cloud Kubernetes All As we know, Spring Cloud K8s allows us to use @FeignClient by service name without a URL:

@RequestMapping("/messages")
@FeignClient(name = "notification-service")
interface MessageFeignClient {

    @PostMapping
    void notify(NotificationMessage message);

}

But how can I run locally the same code without Kubernetes?

-- Alex Barchuk
kubernetes
spring-boot
spring-cloud
spring-cloud-kubernetes

0 Answers