Apache commons-io提供了很多类,这里只介绍FileUtils类。 FileUtils类提供了一些操作文件对象的实用方法,包括文件的读取、写入、复制和比较等。 比如逐句读取和写入一个文件可以使用如下方法: File file = new File("E:/data/a.csv");Li...
分类:
其他好文 时间:
2014-07-16 23:01:07
阅读次数:
363
需求: ”E:/data/”目录下有四个文件夹,如下: 每个文件夹下有几个.csv文件,如下: 将每个文件夹下的.csv文件合并成一个以该文件夹命名的.csv文件。 做法: 找到“E:/data”这个目录,循环读取目录下的四个文件夹; 针对每个文件夹,循环读取目录下的文件列表; 将读取的文件写入要合...
分类:
其他好文 时间:
2014-07-16 22:55:59
阅读次数:
1064
You get the idea right! We are going to enumerate all the ROP-Gadgets and then chain them together to craft our API call which will in turn disable DE...
分类:
其他好文 时间:
2014-07-16 21:56:06
阅读次数:
221
1、错误描述
usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop }
2014-7-10 23:23:53 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded...
分类:
编程语言 时间:
2014-07-13 00:04:33
阅读次数:
472
定义
使多个对象都有机会处理请求,从而避免请求的发送者和接受者之间的耦合度。
案例
比如现在有一个图形界面,它包括一个应用Application类,一个主窗口Window,一个按钮Button,Window和Button都是继承自Widget类,现在在Button上按滑动鼠标滚轮,Button类不一定要处理,可能是Window类处理,也可能是是Application类...
分类:
其他好文 时间:
2014-07-12 23:29:27
阅读次数:
264
1、错误描述
2014-7-12 0:38:57 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
2014-7-12 0:38:57 org.apache.catalina.core.StandardContext...
分类:
编程语言 时间:
2014-07-12 22:18:24
阅读次数:
409
1、错误描述
2014-7-10 23:12:23 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
at com.opens...
分类:
编程语言 时间:
2014-07-12 21:34:37
阅读次数:
649
1、错误描述
警告: Could not create JarEntryRevision for [jar:file:/D:/MyEclipse/apache-tomcat-7.0.53/webapps/FirstSSH/WEB-INF/lib/struts2-core-2.3.16.3.jar]!
java.lang.NoClassDefFoundError: org/apache/commo...
分类:
编程语言 时间:
2014-07-12 20:49:16
阅读次数:
653
一、创建工程、引包
1、创建JAVA工程
2、引入Jmeter中lib\ext基础包:ApacheJMeter_java.jar、ApacheJMeter_core.jar
3、引入Jmeter日志包:jorphan.jar,logkit-2.0.jar,commons-logging-1.1.1.jar,avalon-framework-4.1.4.jar
4、引入httpclient-...
分类:
其他好文 时间:
2014-07-12 19:05:04
阅读次数:
264
项目中涉及了文件的上传和下载,以前在struts2下做过,今天又用springmvc做了一遍,发现springmvc封装的特别好,基本不用几行代码就完成了,下面把代码贴出来:
FileUpAndDown.jsp
using commons Upload to upload file
function downFile(){
var fileId = document.get...
分类:
数据库 时间:
2014-07-11 00:47:45
阅读次数:
289