启动tomcat时打开本地文件

启动tomcat时打开本地文件html File file = new File("temp.html"); Runtime ce=Runtime.getRuntime(); //输出路径 System.out.println(file.getAbsolutePath()); //执行本地html文件 ce.exec("cmd /c start "+file.getAbsolutePat
相关文章
相关标签/搜索