标签:service decode enable balance ring boot start and run
1、概述
Feign is a declarative web service client.
Feign makes writing web service clients easier.
Feign has pluggable annotation support including Feign annotations and JAX-RS annotations.
Feign also supports pluggable encoders and decoders.
Spring Cloud integrates Ribbon and Eureka to provide a load balanced http client when using Feign.
2、How to Include Feign?
To include Feign in your project use the starter with group org.springframework.cloud and artifact id spring-cloud-starter-openfeign.
@SpringBootApplication
@EnableFeignClients
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
标签:service decode enable balance ring boot start and run
原文地址:https://www.cnblogs.com/anpeiyong/p/11814007.html