如何在Quarkus MicroProfile Rest Client中使用动态基本URL?

Quarkus using Rest Client,介绍了如何使用microProfile REST Client。对于基本URL,可以使用application.properties。

https://netflix.com/ca

使用上述方法,不能具有动态基本URL。

能够按照MicroProfile Rest Client中的说明使用RestClientBuilder来实现。这种方法的缺点是没有自动协商功能。

org.acme.restclient.CountriesService/mp-rest/url=https://restcountries.eu/rest # 

还有其他更好的方法可以实现这一目标吗?谢谢。

aniu8258 回答:如何在Quarkus MicroProfile Rest Client中使用动态基本URL?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2851140.html

大家都在问