月蚀:直到我重新启动Eclipse中的Apache Tomcat不更新我的项目 [英] Eclipse: Apache Tomcat doesn't update my project until I restarted Eclipse

查看:199
本文介绍了月蚀:直到我重新启动Eclipse中的Apache Tomcat不更新我的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我测试了我的一个简单的 form.html 。我改变的东西在这里,并用鼠标右键单击项目,在服务器上运行。我的服务器(Apache Tomcat上)将运行我的项目。

I have tested my a simple form.html. I change something on here, and right click on project, run on server. My server (Apache Tomcat) will run my project.

不过,我不知道为什么,它很少更新我的项目。 (平均 form.html 没有变化!),直到我重新启动Eclipse和运行项目试。

But, I don't know why, it rarely update my project. (mean form.html no change !!!) until I restart eclipse and run project again.

也许奇怪的是:没有消息框出现问我:你要重新启动服务器像以前一样。但我有配置在Eclipse中总是,当需要会重新启动服务器。但是,当我改变的东西像 form.html 一些空间,我只是看到Eclipse中保存并运行项目。 (没有停止和重新启动服务器)。也许问题就在这里!

Maybe the strange thing is : no message box appear asked me: "Do you want to restart server" like before. But I have config in Eclipse that "always restarted server when required" to "always". But, after I change something like some space in form.html, I just see that Eclipse save and run project. (not stop and start server again). Maybe the problem here !!!

(在这之前,我已经点击了不重新启动服务器,并记住这个动作),但我不知道如何为这又CONFIG

(before that, I have clicked that not restart server, and remember this action), but I don't know how to config again for this

感谢:)

推荐答案

打开服务器上的服务器视图和DoubleClick。检查服务器位置,并部署路径。选择开放式的发布选项卡,并确保当资源的变化自动发布。静态资源会被热部署,有没有必要重新启动服务器。

Open the "Server" view and doubleclick on your server. Check the server location and deploy path. Open the publish tab and make sure "automatically publish when resource changes" is selected. Static resources will be hot deployed and there's no need to restart the server.

您可以随时通过在Server视图中单击您的服务器名称,然后单击图标非常正确(在头),CRTL + ALT + P发布资源。

You can always republish resources by clicking your servers name in the Server view and then clicking the icon to the very right (in the header), crtl+alt+p.

在重启服务器功能,可以在这里修改:窗口 - > prefereces - >服务器 - >启动

The "restart server" function can be modified here: window -> prefereces -> server -> launching.

希望我能有所帮助。

这篇关于月蚀:直到我重新启动Eclipse中的Apache Tomcat不更新我的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆