Home  >  Q&A  >  body text

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

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

大家讲道理大家讲道理2737 days ago1790

reply all(1)I'll reply

  • 黄舟

    黄舟2017-04-21 11:20:57

    Add a servlet to start loading in your web project:

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

    reply
    0
  • Cancelreply