上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页
摘要: 想到的就是监听步骤如下: 1.配置web.xml 2.编写InitListener类 1 package com.listener; 2 3 import java.io.File; 4 5 import javax.servlet.ServletContextEvent; 6 import jav 阅读全文
posted @ 2017-07-31 14:06 。低调ヽ继续 阅读(737) 评论(0) 推荐(0) 编辑
摘要: 1.删除指定文件路径 1 public @ResponseBody 2 String deleteFiles(HttpServletRequest request) { 3 log.info(this.getClass().getSimpleName() + "." 4 + Thread.curre 阅读全文
posted @ 2017-07-31 13:58 。低调ヽ继续 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1.由于公司需要将一个或多个视频进行打包,格式如下图: 2.创建zipUtil工具包: 1 package com.seegot.util; 2 3 import java.io.BufferedOutputStream; 4 import java.io.File; 5 import java.i 阅读全文
posted @ 2017-07-31 13:45 。低调ヽ继续 阅读(1413) 评论(0) 推荐(0) 编辑
摘要: 1.由于公司需要生成如下格式TXT: 1 var ovr_parameters={ 2 "changeMainVideoList": [ 3 ], 4 "indexList": [ 5 {indexName:"知识要点一1",indexTime:"3"}, 6 {indexName:"知识要点二2" 阅读全文
posted @ 2017-07-31 13:36 。低调ヽ继续 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 由于工作需要,需要生成如下xml: <?xml version="1.0" encoding="UTF-8"?> <root> <Scorm Theme="2016-06-22 18:09:45" Speakor="" Introduction="" ScromType="1"> <VideoLis 阅读全文
posted @ 2017-07-31 13:31 。低调ヽ继续 阅读(587) 评论(0) 推荐(0) 编辑
摘要: 1.下载jar包:http://www.sauronsoftware.it/projects/jave/index.php 2.上代码 1 @RequestMapping(value = "amendFile.htm", produces = "application/json;charset=UT 阅读全文
posted @ 2017-07-31 13:20 。低调ヽ继续 阅读(1281) 评论(0) 推荐(0) 编辑
摘要: freemarker 阅读全文
posted @ 2016-09-09 09:45 。低调ヽ继续 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 1 package com; 2 3 import java.awt.Color; 4 import java.awt.Font; 5 import java.awt.Graphics2D; 6 import java.awt.image.BufferedImage; 7 import java.i 阅读全文
posted @ 2016-08-20 15:59 。低调ヽ继续 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 在swift中的闭包等同于OC中的block,它的用途就是在于可以包装一段代码在必要的时候进行调用。 闭包定义: {(类型列表) -> 返回值 in // 多条swift语句 // 执行代码 insert coding } 实际创建闭包代码如下: 注释: 1.此处我们定义一个 square的变量,该 阅读全文
posted @ 2016-07-22 14:02 。低调ヽ继续 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 1 for var a in 0...1000 2 { 3 var rep = 0 4 var aa = a 5 repeat{ 6 rep = rep * 10 + aa % 10 7 aa = aa / 10 8 }while(aa>0) 9 if(rep == a) 10 { 11 p... 阅读全文
posted @ 2016-07-06 19:44 。低调ヽ继续 阅读(348) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页