需要一个简单的跟踪Hello World REST示例为Jetty +泽西+ Maven应用程序 [英] Need an easy to follow Hello World REST example for a Jetty + Jersey + Maven app
问题描述
我没有成功地让Jetty与Jersey在Hello World级应用程序中进行合作,演示了泽西的REST功能。示例似乎缺少详细的POM信息,目录结构,html客户端,JDK版本(我正在使用jdk1.7.0_51)或其他一些细节,我被绊倒了。
I have not been successful in getting Jetty working with Jersey in a Hello World level app which demonstrates the REST capabilities of Jersey. Examples seem to lack detailed POM information, directory structure, html client, JDK version (I am using jdk1.7.0_51), or some other detail which I get tripped up on.
我正在寻找一个清楚的书面教程(一个链接是好的),其中包含所有这些细节或将采取一个例子+提供缺少的信息的评论
I am looking for a clearly written tutorial (a link is fine) which has all of these details OR would take an example + comments which supply the missing information.
推荐答案
请查看我对您的其他问题的答案,以获取 HelloWorld
泽西2
& 码头
。这应该是很自明的,但是让我知道,如果yodu想进一步澄清什么。
See my answer to your other question for a HelloWorld
Jersey 2
& Jetty
. It should be pretty self explanatory, but let me know if yodu want further clarification on anything.
这篇关于需要一个简单的跟踪Hello World REST示例为Jetty +泽西+ Maven应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!