程序启动自动打开浏览器

来源:互联网 发布:淘宝卖家版登录 编辑:程序博客网 时间:2024/06/13 20:47

最近项目要求server启动后自动打开浏览器,找了一圈

Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler http://localhost8080/");


原创粉丝点击