这是RESTful调用的格式:HEADERS:Content-Type:application/json;charset=UTF-8Authorization:BearerRc7JE8P7XUgSCPogjhdsVLMfITqQQrjgREQUEST:GEThttps://api.example.com/1/realTime?json={"selection":{"includeAlerts":"true","selectionType":"registered","selectionMatch":"","isTheEvent":"true","includeRuntime":"tru
这是RESTful调用的格式:HEADERS:Content-Type:application/json;charset=UTF-8Authorization:BearerRc7JE8P7XUgSCPogjhdsVLMfITqQQrjgREQUEST:GEThttps://api.example.com/1/realTime?json={"selection":{"includeAlerts":"true","selectionType":"registered","selectionMatch":"","isTheEvent":"true","includeRuntime":"tru
我正在尝试使用Jersey创建WebAPI。我正在尝试运行与此类似的方法:WebResourcer=c.resource("http://localhost:8080/Jersey/rest/contacts");但是Jersey2.x没有WebResource或Resource类。那么我可以使用什么类来将urihttp://localhost:8080/Jersey/rest/contacts作为参数?这将在ContactClient类中运行 最佳答案 看看ClientAPI来自Jersey文档。对于Jersey2.x,您反而想使