于希良

快乐的码农!!!!!
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2016年8月23日

摘要: 在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) 编辑

摘要: 感觉还是注解方式比较实用 xml方式 web.xml <!-- 读取spring mvc的核心配置文件 --> <servlet> <servlet-name>yxl</servlet-name> <servlet-class>org.springframework.web.servlet.Disp 阅读全文

posted @ 2016-08-23 14:46 小小科密 阅读(387) 评论(0) 推荐(0) 编辑