开发者

install and use jersey on Eclipse

开发者 https://www.devze.com 2023-03-06 02:17 出处:网络
In my Web service I use eclipse, java 1.5, spring. now I want to use jersey for REST and downloaded the jersey as a bundle jar from this address:

In my Web service I use eclipse, java 1.5, spring. now I want to use jersey for REST and downloaded the jersey as a bundle jar from this address:

http://jersey.java.net/nonav/documentation/latest/chapter_deps.html

How can I add this jar to my project and start using the JAX-rs annotations, I added to buildpath but se开发者_如何转开发ems like does not work.

Also is it necessary or a good idea to create JAXB annotated classes of my resource classes and using them with JERSEY?


Make sure you have jsr-311 jar on your classpath. For example you can download it from here.

Jersey supports JAXB out-of-the-box. It doesn't mean you have to use JAXB. If you need to serialize data to/from xml, using JAXB with Jersey is the most convenient.

0

精彩评论

暂无评论...
验证码 换一张
取 消