摘要: 1 /** 2 * 解析excel文件 ,并把数据放入数组中 格式 xlsx xls 3 * @param path 从ftp上下载到本地的文件的路径 4 * @return 数据数组集合 5 */ 6 public List<String[]> readExcelPublic(String pat 阅读全文
posted @ 2016-09-26 17:46 _万古如长夜 阅读(993) 评论(0) 推荐(0)
摘要: 1 /** 2 * 建立FTP链接,FTP服务器地址、端口、登陆用户信息都在配置里配置即可。 3 * @throws IOException 4 */ 5 public boolean connectFtp(String ftpAddress, String ftpPort, String frpU 阅读全文
posted @ 2016-09-26 17:43 _万古如长夜 阅读(6193) 评论(0) 推荐(0)
摘要: 1. jsp代码 : 1 <Script> 2 function changeImg(){ 3 document.getElementById("certImg").src ="makeCertPic.jsp?it="+Math.random(); /* +Math.random() */ 4 } 阅读全文
posted @ 2016-08-19 11:04 _万古如长夜 阅读(323) 评论(0) 推荐(0)
摘要: 1.当有其他字符出现时,返回的数组长度>1 String s = "3 6\\5656"; Pattern pattern = Pattern.compile("[^0-9-]+"); String[] ss = pattern.split(s); System.out.println(ss.len 阅读全文
posted @ 2016-08-19 09:59 _万古如长夜 阅读(5388) 评论(0) 推荐(1)