1.创建ApiHelper类 2.复制以下代码到类中 using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace 对应的命名空间 { public class ApiHelper { /// <summary> /// api调用方法 /// </sum
这个项目能够帮助开发人员利用Java编程语言轻松实现JSON-RPC远程调用.jsonrpc4j使用Jackson类库实现Java对象与JSON对象之间的相互转换.jsonrpc4j包含一个JSON-RPC服务器,支持Stream与HTTP(GET与POST),同时还提供一个支持Stream的JSON-RPC客户端.此外还提供一个HTTP客户端.Spring Service Provider和Spring Service Consumer. https://github.com/briandil