javax.ws.rs包 [英] javax.ws.rs package

查看:729
本文介绍了javax.ws.rs包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习restful webservices,所有教程都使用javax.ws.rs。*包。但是使用JDK 6和JDK 7,我的eclipse似乎没有认识到javax.ws包。我在这里缺少什么?

I am learning restful webservices and all the tutorials use javax.ws.rs.* package. But with JDK 6 anf JDK 7, my eclipse doesn't seem to recognize javax.ws package. What am I missing here?

推荐答案

javax.ws.rs 不是JDK包;它是服务器端API,构成Java EE规范的一部分。您需要在类路径中包含Java EE运行时,或者如果您要使用自组装路线(例如使用Tomcat。)

javax.ws.rs is not a JDK package; it is a server-side API that forms part of the Java EE specification. You would need to include a Java EE runtime on your classpath or source an implementation from a 3rd party if you're going the self-assembly route (e.g. using Tomcat.)

这篇关于javax.ws.rs包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆