Jersey Services with Tomcat and Eclipse

前端 未结 4 1711
傲寒
傲寒 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:54

    It works for me on a PC. Did you make the eclipse project a maven project? If you do that then you can use org.glassfish.jersey.bundles jaxrs-ri version 2.5 (or whichever) as a dependency in your pom and then when you do run->maven-install from eclipse it will build a war file with all the necessary dependencies in it.

提交回复
热议问题