Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring boot 无法从应用程序yml解析假客户端名称_Spring Boot_Netflix Eureka_Spring Cloud Netflix_Feign - Fatal编程技术网

Spring boot 无法从应用程序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

我有一个SpringBoot应用程序,我试图使用假客户端向端点发出请求,但它无法从应用程序yml解析假客户端名称。 我的应用程序yml有以下代码:

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/..