eclipse 如何将 JAX-RS 添加到现有项目
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14924925/
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
How to add JAX-RS to an existing project
提问by Doo Dah
I am using Java EE, Java 1.7, glassfish 3 and Eclipse Indigo. I have an existing web project that I built from this tutorial: http://www.tech-juice.org/2012/05/13/hello-world-with-jsf-2-0-glassfish-3-maven-svn-and-eclipse/#comment-10560. Now, I want to add RESTful web services to the project. I go to Project -> properties, Project Facets and check JAX-RS. I then click the link that says "Further configuration needed". I give a servlet class name. I am now told that "At least one user library must be selected."
我正在使用 Java EE、Java 1.7、glassfish 3 和 Eclipse Indigo。我有一个根据本教程构建的现有 Web 项目:http: //www.tech-juice.org/2012/05/13/hello-world-with-jsf-2-0-glassfish-3-maven-svn -and-eclipse/#comment-10560。现在,我想向项目添加 RESTful Web 服务。我转到 Project -> properties,Project Facets 并检查 JAX-RS。然后我单击显示“需要进一步配置”的链接。我给出了一个 servlet 类名。我现在被告知“必须至少选择一个用户库”。
What does this mean?
这是什么意思?
I have looked, but, not seen a tutorial on adding JAX-RS to an existing project.
我已经看过了,但是没有看到将 JAX-RS 添加到现有项目的教程。
Thanks, Scott
谢谢,斯科特
回答by David J. Liszewski
Disabling implementation library selection should just work. I believe the library configuration item exists in case you do not want to use the default implementation.
禁用实现库选择应该可以正常工作。我相信库配置项存在,以防您不想使用默认实现。