如何设置让eclipse在启动tomcat的时候自动弹出web项目的主页,每次都要手动打开浏览器很麻烦


如何设置让eclipse在启动tomcat的时候自动弹出web项目的主页,每次都要手动打开浏览器很麻烦

tomcat eclipse

隐性-恶疾 9 years, 3 months ago

在你的web项目中加一个启动加载的servlet:


 Runtime.getRuntime().exec(new String[] { "C:\\Program Files\\Internet Explorer\\iexplore.exe", "http://localhost:8080/app" });

Allroll answered 9 years, 3 months ago

Your Answer