Java RESTful Jersey Examples? [closed]

非 Y 不嫁゛ 提交于 2019-12-19 08:28:15

问题


Are there any examples that demonstrate using Java and Jersey to perform Client<->Server communication? Such as sending XML data to and from each other?


回答1:


I would suggest this tutorial from Lars Vogel

It's great place to start with exploring Java Restful, with the use of Tomcat and Jersey. With small remark that not everything there is cohirant- you should try to do some of the work yourself.

Furthermore I had trouble myself working with it, but I found this great extension to the Vogel's tutorial.




回答2:


The one from Lars Vogel already pointed out is great, but I would also recommend you to check this one, published by IBM. Also, the official documentation is full of useful code snipets. This, together with the API reference should be enough to start on it!




回答3:


There are plenty of samples in the Jersey samples zip file:

http://download.java.net/maven/2/com/sun/jersey/samples/jersey-samples/1.4/jersey-samples-1.4-project.zip



来源:https://stackoverflow.com/questions/4474582/java-restful-jersey-examples

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!