停止Eclipse重新启动我的网络应用程序文件保存 [英] Stop Eclipse restarting my web app on file save

查看:121
本文介绍了停止Eclipse重新启动我的网络应用程序文件保存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse中创建了一个JSF / Facelets Web应用程序。我已经将我的项目配置为使用由Eclipse启动/停止的Tomcat(6.0)服务器。



每当我保存文件(例如.xhtml)时,Eclipse会重新启动应用程序,垃圾我的HTTP会话。这是烦人的,因为我经常更新我的.xhtml文件,并且该应用程序不需要重新启动来检测更改。



有没有办法来停止Eclipse重新启动应用程序?具体来说,当我保存某种类型的文件时,我可以将Eclipse配置为仅重新启动应用程序吗?

解决方案

在服务器视图中,双击您的Tomcat实例。
这将打开您的Tomcat服务器的属性。
由于我不知道哪个参数可以帮助您解决问题,请查看后一个视图中的以下选项:




  • 自动发布,选择覆盖默认设置,发布时间间隔为1秒。

  • 在服务器选项中,取消选中不发布服务器模块和发布模块上下文以分离XML文件。

  • 在模块选项卡中,对于部署的每个模块,检查是否启用了自动重新加载。



希望这将有助于您。


I'm creating a JSF/Facelets web app in Eclipse. I've configured my project to use a Tomcat (6.0) server that is started/stopped by Eclipse.

Whenever I save a file (eg .xhtml) Eclipse restarts the app, trashing my HTTP session. This is annoying, because I'm frequently updating my .xhtml files, and the app doesn't need restarting to detect the changes.

Is there a way to stop Eclipse restarting the app? Specifically, can I configure Eclipse to only restart the app when I save files of a certain type?

解决方案

In the server View, double click on your Tomcat instance. This will open the properties of your Tomcat server. As I am not sure of which parameter will help you to solve your problem, check the following options in the latter view:

  • Automatic Publishing, option "Override default settings" selected, 1 second for the publishing interval.
  • In server options, uncheck options "Server modules without publishing" and "publish module contexts to separate XML files".
  • In the modules tab, for each modules deployed, check that Auto Reload is enabled.

Hope this will help you.

这篇关于停止Eclipse重新启动我的网络应用程序文件保存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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