Spring boot 无法从应用程序yml解析假客户端名称
我有一个SpringBoot应用程序,我试图使用假客户端向端点发出请求,但它无法从应用程序yml解析假客户端名称。 我的应用程序yml有以下代码:Spring boot 无法从应用程序yml解析假客户端名称,spring-boot,netflix-eureka,spring-cloud-netflix,feign,Spring Boot,Netflix Eureka,Spring Cloud Netflix,Feign,我有一个SpringBoot应用程序,我试图使用假客户端向端点发出请求,但它无法从应用程序yml解析假客户端名称。 我的应用程序yml有以下代码: ribbon: eureka: enabled: false beacon: ribbon: isSecure: true listOfServers: https://beacon.org 我的界面如下所示: @FeignClient("beacon") public interface Beac
ribbon:
eureka:
enabled: false
beacon:
ribbon:
isSecure: true
listOfServers: https://beacon.org
我的界面如下所示:
@FeignClient("beacon")
public interface BeaconClient {
@GetMapping("/api/organizations")
List<Org> getOrgs();
}
@FeignClient(“信标”)
公共接口BeaconClient{
@GetMapping(“/api/组织”)
列出getOrgs();
}
我收到一个错误500内部服务器错误,因为我看到它请求http://beacon/api/organizations 端点而不是您的代码是正确的。默认的外部记录器具有误导性<代码>http://beacon/..您在日志中看到的内容并不表示正在调用的实际url。实际请求通过
https://beacon.org/..