Spring Cloud OpenFeign

Marco Jo·2021년 12월 5일
0

Spring Cloud OpenFeign

support

3.1.x since from 2021-11-30
3.0.x since from 2020-12-21
2.2.x since from 2019-11-26(Commercial Support)

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();
	}
}

0개의 댓글

관련 채용 정보