如何在Eclipse中的Tomcat上部署REST(Jersey)服务器

时间:2015-09-02 21:49:15

标签: eclipse rest tomcat jersey web-deployment

我一直在寻找使用eclipse在Tomcat上部署Jersey webservice的方法,但我没有找到简单或明确的示例,我想知道要遵循的步骤或完成工作的示例。< / p>

1 个答案:

答案 0 :(得分:1)

如果您还没有这样做,请下载tomcat安装并使用它在eclipse中设置服务器运行时:

enter image description here

enter image description here

enter image description here

enter image description here

然后通过在“服务器”选项卡中双击其名称来打开服务器配置。 在“模块”下单击“添加Web模块...”以添加项目并指定部署路径(如果您没有在模块列表中看到项目或者如果按钮被禁用,请确保您的项目具有'动态Web模块的方面,您可以通过右键单击项目&gt; Properties&gt; Project Facets来检查 enter image description here 在“概述”下,您可以进一步设置tomcat环境(通过设置端口值,超时等)。

enter image description here