简体   繁体   English

如何从外部jar使用Restful Web服务

[英]How to consume Restful webservice from external jar

I would like to consume the Restful API from the executable jar. 我想从可执行jar中使用Restful API。 The restful APIs are deployed in Wildfly server. 宁静的API部署在Wildfly服务器中。

Is there any possibility to consume the RestFul APIs from outside. 是否有可能从外部使用RestFul API。 ie, from the executable jar? 即从可执行jar?

Note: This jar won't be deployed in the server, so we can't use spring. 注意:此jar不会部署在服务器中,因此我们不能使用spring。

您可以使用OkHttp http://square.github.io/okhttp/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM