Spring Cloud OpenFeign

2.1.0 RC2

This project provides OpenFeign integrations for Spring Boot apps through autoconfiguration and binding to the Spring Environment and other Spring programming model idioms.


  • Declarative REST Client: Feign creates a dynamic implementation of an interface decorated with JAX-RS or Spring MVC annotations

Getting Started

public class WebApplication {

	public static void main(String[] args) {
		SpringApplication.run(WebApplication.class, args);

	static interface NameService {
		public String getName();

Quick start

Bootstrap your application with Spring Initializr.


Each Spring project has its own; it explains in great details how you can use project features and what you can achieve with them.
2.1.0 RC2 PRE CURRENT Reference Doc. API Doc.
2.0.3 SNAPSHOT CURRENT Reference Doc. API Doc.
2.0.2 CURRENT GA Reference Doc. API Doc.

A few examples to try out: