在 Eclipse 中启动 Tomcat 后启动 Web 浏览器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8611406/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Launch Web Browser After Tomcat Startups in Eclipse
提问by
In my old Eclipse setup, I used to have a web browser launch whenever Eclipse builds my project and Tomcat finishes starting up. Now, on my new computer, I've lost that setting.
在我的旧 Eclipse 设置中,我曾经在 Eclipse 构建我的项目并且 Tomcat 完成启动时启动 Web 浏览器。现在,在我的新电脑上,我失去了那个设置。
I was able to change which browser would be the default browser for Eclipse (Windows > Preference > General > Web Browser ). However, now after it says "INFO: Server startup in xxxxxxx ms", I have to manually open my browser and go to "http://localhost:8080/webapp_name".
我能够更改哪个浏览器将成为 Eclipse 的默认浏览器(Windows > Preference > General > Web Browser)。但是,现在在显示“信息:xxxxxxx 毫秒中的服务器启动”之后,我必须手动打开浏览器并转到“http://localhost:8080/webapp_name”。
Does anyone know how to make Eclipse automatically launch the browser after Tomcat finishes starting up? It's very useful particular for builds that takes minutes.
有谁知道如何让Eclipse在Tomcat启动完成后自动启动浏览器?这对于需要几分钟的构建非常有用。
回答by Daniel Magnusson
Do the reverse of this one: how to stop Eclipse browser from displaying web page upon restarting tomcat?
做这个相反的: 如何在重新启动tomcat时阻止Eclipse浏览器显示网页?
I just turned off my auto browser open by having internet explorer in that setting, try with default for ti to open auto again.
我刚刚通过在该设置中使用 Internet Explorer 关闭了我的自动浏览器,尝试使用默认设置再次打开自动。