小编Ezr*_*hun的帖子

Jersey 2.x不包含WebResource和资源类.我可以用什么呢?

我正在尝试使用Jersey创建一个Web API.我正在尝试运行类似于此的方法:

WebResource r = c.resource("http://localhost:8080/Jersey/rest/contacts");
Run Code Online (Sandbox Code Playgroud)

但泽西岛2.x没有WebResourceResource类.那么我可以使用哪个类来将uri http://localhost:8080/Jersey/rest/contacts作为参数?这将在ContactClient课堂上进行

java rest jersey jersey-2.0

6
推荐指数
1
解决办法
4098
查看次数

标签 统计

java ×1

jersey ×1

jersey-2.0 ×1

rest ×1