简体   繁体   English

如何在Eclipse中打开Tomcat的自动重启?

[英]How to turn ON automatic restart of Tomcat in Eclipse?

I want to setup Tomcat in Eclipse Luna to automatically restart, means opposite of this or this 我想安装Tomcat的Eclipse中月神自动重启,意味着对这个

When developing servlet, after changing my java code and then ran it Eclipse asked me to whether to restart the Tomcat or not. 在开发servlet时,在更改我的java代码然后运行它后,Eclipse会问我是否重新启动Tomcat。 I clicked "no" and checked "remember my choice". 我点击“否”并选中“记住我的选择”。

So every time, when I run servlet, the Tomcat will NOT automatically restart. 所以每次运行servlet时,Tomcat都不会自动重启。

Where can I turn ON that feature (ie, to clear "remember my choice" and set it opposite way). 我在哪里可以打开该功能(即清除“记住我的选择”并将其设置为相反的方式)。

I already tried opposite of what is advised in those two links but to no success. 我已经尝试过在这两个链接中建议的相反但没有成功。 I tried both with "Modules auto reload by default" checked and unchecked. 我选中了“默认情况下自动重新加载模块”选中并取消选中。

UPDATE UPDATE
I also tried to delete Tomcat several times and configure all over again, but it didn't help either. 我也试过多次删除Tomcat并重新配置,但它也没有帮助。 Here are available settings: 以下是可用的设置:

Eclipse Luna中的Tomcat设置

What you want to do is to update/modify launching preferences(how or when the server or runtime is launched). 您要做的是更新/修改启动首选项(启动服务器或运行时的方式或时间)。

To update launching preferences : 要更新启动首选项:

Go to Window->Preferences->Server->Launching 转到Window-> Preferences-> Server-> Launching

Make the highlighted option to Always. 将突出显示的选项设为始终。

Source: Defining the launching preferences 来源: 定义启动首选项

在此输入图像描述

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

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