Jersey Services with Tomcat and Eclipse

前端 未结 4 1720
傲寒
傲寒 2020-12-10 09:24

I\'m developing a rest service with Jersey 2.0 (I downloaded from http://repo1.maven.org/maven2/org/glassfish/jersey/bundles/jaxrs-ri/2.5/jaxrs-ri-2.5.zip) and I\'m using To

4条回答
  •  臣服心动
    2020-12-10 09:51

    Adding Jersey to an Eclipse project without maven is simple: Click properties for the project, go to the Java Build Path. Click on the Add Library on the left, select user library. After you click next you will see "user libraries" in the upper right. Click that. Click new. Add a name: jaxrs-ri-2.5 for example. Click add external jars, and add the jars in the api, lib and ext folders. You're done. This will probably also include them in any war file you make with eclipse.

    Worked for me.

提交回复
热议问题