0

我尝试使用 FeignClient 拨打电话,但我被告知该网址格式错误。

@FeignClient(name = "target-employees", url = "${target.employees_url}")
public interface EmployeeProxy {....}

在我的 yml 文件属性中,我有:

target:
  employees_url: https://ads2356:tmp:request:com/sap/v1/EmployeeCollection

这是启动时的错误:

Caused by: java.lang.IllegalArgumentException: https://ads2356:tmp:request:com/sap/v1/EmployeeCollection is malformed
Caused by: java.net.MalformedURLException: For input string: "tmp:request:com"
at java.net.URL.<init>(URL.java:644)
at org.springframework.cloud.openfeign.FeignClientsRegistrar.getUrl(FeignClientsRegistrar.java:111)

请你知道如何解决这个问题。谢谢

4

0 回答 0