- 兼容Spring Boot,服务注册(consul、nacos),RPC调用(http)。
- 序列化方式:JSON
- api 注解
- common 通用工具
- core 核心
- sample 演示
- springboot Spring Boot支持
project.one.registry=Consul
project.one.consul.address=127.0.0.1
project.one.consul.port=8500说明:consul注册地址
import cn.project.one.api.annotation.Feign;
@Feign(service = "project-one-test")
public interface IndexService() {
@Mapping('/sayHello')
String sayHello();
}说明:@Feign必须是接口,参数service是被调用的工程名。