如何在eclipse中运行应用程序时将默认网页设置为打开

时间:2022-10-24 23:08:26

Is it possible in Eclipse to set the default file to open (to run) when running a web app project? Eclipse runs the current file on focus every time I click the run button. How can I make it open a specific file (i.e. index.jsp) instead no matter what file I am editing?

在运行Web应用程序项目时,是否可以在Eclipse中将默认文件设置为打开(运行)?每次单击运行按钮时,Eclipse都会在焦点上运行当前文件。无论我正在编辑什么文件,如何让它打开特定文件(即index.jsp)?

2 个解决方案

#1


0  

You can disable the behavior of launching the selected resource in preferences.

您可以禁用在首选项中启动所选资源的行为。

Window -> Preferences -> Run/Debug -> Launching -> Launch Operation

窗口 - >首选项 - >运行/调试 - >启动 - >启动操作

#2


0  

Configure Run Configurations for your project.. And always run the Configuration which u've configured.

为您的项目配置运行配置..并始终运行您已配置的配置。

#1


0  

You can disable the behavior of launching the selected resource in preferences.

您可以禁用在首选项中启动所选资源的行为。

Window -> Preferences -> Run/Debug -> Launching -> Launch Operation

窗口 - >首选项 - >运行/调试 - >启动 - >启动操作

#2


0  

Configure Run Configurations for your project.. And always run the Configuration which u've configured.

为您的项目配置运行配置..并始终运行您已配置的配置。