java伪客户端Url格式不正确
我试图用FaignClient打电话,但我被告知url格式不正确
@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)
请问你知道怎么解决这个问题吗。谢谢
共 (0) 个答案