Spring Cloud OpenFeign 2.2.2

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

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

Getting Started

@SpringBootApplication
@EnableFeignClients
public class WebApplication {

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

@FeignClient("name")
static interface NameService {
	@RequestMapping("/")
	public String getName();
}

}

Quick start
Bootstrap your application with Spring Initializr.

上一篇:Makefile = := ?= +=这几个赋值运算符


下一篇:基本输入输出系统BIOS