简体   繁体   English

在eclipse中避免嵌入式tomcat

[英]Avoiding the embedded tomcat in eclipse

I am using eclipse as my development IDE. 我使用eclipse作为我的开发IDE。 I created a Server Runtime Environment using tomcat and I am able to run the project on the server which basically runs on the tomcat local to eclipse. 我使用tomcat创建了一个服务器运行时环境,我能够在服务器上运行该项目,该服务器基本上运行在eclipse的本地tomcat上。

I would really love to directly run this project on the tomcat server which is present in my C:/Program Files/Apache Software Foundation/tomcat/ directory. 我真的很想直接在tomcat服务器上运行这个项目,该服务器存在于我的C:/ Program Files / Apache Software Foundation / tomcat /目录中。

Is there a way where I can force eclipse to run the projects on the tomcat I want instead of running it on the local eclipse copy of the server? 有没有办法可以强制eclipse在我想要的tomcat上运行项目,而不是在服务器的本地eclipse副本上运行它?

Thanks 谢谢

You can create a server runtime in eclipse which points to "C:/Program Files/Apache Software Foundation/tomcat/" using NEW-->SERVER-->click on configure runtime environments this will use the server which is located your folder. 您可以在eclipse中创建服务器运行时,使用NEW - > SERVER指向“C:/ Program Files / Apache Software Foundation / tomcat /” - >单击配置运行时环境,这将使用位于您的文件夹中的服务器。 I hope i am able to clarify. 我希望我能澄清一下。

First publish your server by right clicking it and publish. 首先通过右键单击并发布来发布服务器。 Then double click the server and change the Server Locations as seen in the image attached. 然后双击服务器并更改附加映像中显示的服务器位置。 服务器位置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM