Eclipse 和 Jetty 的 Java RESTful Web 服务教程

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3352498/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 22:32:19  来源:igfitidea点击:

Java RESTful Web Service Tutorial with Eclipse and Jetty

javaeclipseweb-servicesrestjetty

提问by Marius Butuc

I want to build a RESTful Web Service in Java, deployed using Jetty and developed using Eclipse as IDE. I was wondering if anyone could post or link me to a beginner tutorial (even a "hello world!" would be good, for starters).

我想用 Java 构建一个 RESTful Web 服务,使用 Jetty 进行部署并使用 Eclipse 作为 IDE 进行开发。我想知道是否有人可以发布或链接我到初学者教程(即使是“你好世界!”对于初学者来说也很好)。

Thanks in advance!

提前致谢!

采纳答案by fasseg

The Jersey (JSR-311) implementation for RESTful Web Services has a nice "Getting Started" section:

RESTful Web 服务的 Jersey (JSR-311) 实现有一个很好的“入门”部分:

http://jersey.java.net/nonav/documentation/latest/getting-started.html

http://jersey.java.net/nonav/documentation/latest/getting-started.html

回答by atjua

Another website I have found to be very beginner-friendly and contains very detailed explanation from ground-up : http://www.vogella.com/tutorials/REST/article.html

我发现另一个网站对初学者非常友好,并且包含从头开始的非常详细的解释:http: //www.vogella.com/tutorials/REST/article.html