生成文件名字 private String file()throws Exception { String str[] = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j" }; Random tmp = new Random(); String fileName = System.currentTimeMillis() + str[tmp.nextInt(10)] + "." + "xlsx"; r
private String file()throws Exception { String str[] = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j" }; Random tmp = new Random(); String fileName = System.currentTimeMillis() + str[tmp.nextInt(10)] + "." + "xlsx"; return "C:\\Users\\wo\\Desktop\\"+fileName; }