如何在运行webapp后禁用autoopen内部webbrowser? [英] How to disable autoopen internal webbrowser after run webapp?

查看:171
本文介绍了如何在运行webapp后禁用autoopen内部webbrowser?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在STS上运行Web应用程序时,内部Web浏览器打开。我想禁用它,但我不知道我该怎么做。

解决方案


When I run web app on server in STS internal web browser opens. I want to disable this but I don't know where can I do this.

解决方案

Eldelshell already sort of answered this, but I think a little more info might help other people. He's correct about going to Window -> Preferences -> General -> Web Browser and creating a new external external browser configuration. This will only work with an executable, though. Thus, entering /dev/null in the "Location" field won't work. What to put there depends on which type of operating system you're on, but basically you want to specifiy a command that doesn't do much. I use:

  • for *nix based systems: /bin/true (does nothing, successfully: reference)
  • for Windows systems: cmd /c (spawns a shell and terminates immediately: reference)

Here's what it looks like to add the web browser configuration in Eclipse Neon. Note that after adding the configuration, you also need to activate it by checking the adjacent checkbox in the parent dialog.

这篇关于如何在运行webapp后禁用autoopen内部webbrowser?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆