摘要:
在servlet中调用 try { File fileWrite = new File("D:/Write.xls"); fileWrite.createNewFile(); OutputStream os = new FileOutputStream(fileWrite); ExcelExport 阅读全文
posted @ 2016-08-23 15:19 小小科密 阅读(362) 评论(0) 推荐(0) 编辑
|
|||
摘要:
在servlet中调用 try { File fileWrite = new File("D:/Write.xls"); fileWrite.createNewFile(); OutputStream os = new FileOutputStream(fileWrite); ExcelExport 阅读全文
posted @ 2016-08-23 15:19 小小科密 阅读(362) 评论(0) 推荐(0) 编辑
摘要:
String[] beforeShuffle = new String[] {"1", "2", "3", "4", "5", "6", "7", "8", "9","10" }; List list = Arrays.asList(beforeShuffle); Collections.shuff 阅读全文
posted @ 2016-08-23 15:15 小小科密 阅读(161) 评论(0) 推荐(0) 编辑
摘要:
获取要下载的文件,主要是在服务器上,这种方式会有一个插件,感觉不错!! 直接在servlet或controller上复制这段代码就能轻松实现下载功能了 String photo = list.get(0).get("photo"); photo = new String(photo.getBytes 阅读全文
posted @ 2016-08-23 15:11 小小科密 阅读(111) 评论(0) 推荐(0) 编辑
摘要:
本节主要讲了动态SQL的几个标签:where set trim where: 检出where语句的最前面是否含有AND和一个空格 或者 or和一个空格 ,如果有的话删除 set: 检出set的最后是否有逗号 ,如果有,则清空 trim:可用来替换where和set foreach:遍历集合(arra 阅读全文
posted @ 2016-08-23 14:52 小小科密 阅读(117) 评论(0) 推荐(0) 编辑 |
|||