摘要: 程序性能调优 阅读全文
posted @ 2017-04-07 17:08 夏之夜 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 1 var taskId; 2 var __sto = setInterval; 3 window.setInterval = function(callback,timeout,param){ 4 var args = Array.prototype... 阅读全文
posted @ 2015-08-03 19:20 夏之夜 阅读(716) 评论(0) 推荐(0) 编辑
摘要: 1. 场景:在后台将字符串数据a放在request中,之后跳转到前台jsp页面;在页面中想通过来获取a,并根据a中的第一个字符内容来显示不同的内容。浏览浏览注意:其中test的值的取值方式。 阅读全文
posted @ 2014-11-27 15:55 夏之夜 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 实现FTP文件上传与下载可以通过以下两种种方式实现(不知道还有没有其他方式,),分别为:1、通过JDK自带的API实现;2、通过Apache提供的API是实现。第一种方法:通过JDK自带的API实现代码如下:package com.cloudpower.util;import java.io.Fil... 阅读全文
posted @ 2014-11-24 15:14 夏之夜 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 在windows server 2008 R2中建立ftp站点,要遵循以下步骤:(1) 开启IIS中的ftp服务;(2) 在IIS中建立ftp站点。 具体过程如下:(1) 开启IIS中的ftp服务: 点击右边的添加角色,在打开的页面中添加角色,将和"IIS"相关的选项以及与"FTP"相关的选项... 阅读全文
posted @ 2014-11-24 14:48 夏之夜 阅读(13051) 评论(0) 推荐(0) 编辑
摘要: package cn.cctv.net; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; impo... 阅读全文
posted @ 2014-08-11 10:59 夏之夜 阅读(249) 评论(0) 推荐(0) 编辑
摘要: public int importExcel(String path,int type){ if(mark==false){ return 0; }else try{ POIFSFileSystem fs; ... 阅读全文
posted @ 2014-08-06 16:27 夏之夜 阅读(214) 评论(0) 推荐(0) 编辑
摘要: (1) action代码package comSys.struts.articleManager;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import org.apache.... 阅读全文
posted @ 2014-08-06 16:24 夏之夜 阅读(168) 评论(0) 推荐(0) 编辑
摘要: /*** * 获得根目录 * @returns */function getRootPath() { var strFullPath = window.document.location.href; var strPath = window.document.location.pathn... 阅读全文
posted @ 2014-08-04 19:13 夏之夜 阅读(913) 评论(0) 推荐(0) 编辑
摘要: 1. 上传文件(1) controller@RequestMapping(value={"/uploadFile"},method={RequestMethod.POST}) public String upload(@RequestParam(value = "file", require... 阅读全文
posted @ 2014-08-04 18:32 夏之夜 阅读(282) 评论(0) 推荐(0) 编辑