摘要: 想到的就是监听步骤如下: 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) 编辑