I created a copy of the tar archive and copied to entire content to it. Then I delete the old tar archive.public void appendFileInTarArchive(String ta...
分类:
移动开发 时间:
2015-02-04 20:10:30
阅读次数:
197
jar:commons-io-2.4.jarcommons-net-3.3.jarCode:import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOExce...
分类:
Web程序 时间:
2015-02-03 12:37:11
阅读次数:
247
1.项目结构org.apache.commons.dbutils 包 |__DbUtils:jdbc辅助方法集合,线程安全|__ResultSetHandler:转换ResultSets对象 为其他Object 接口,下面为它的一些具体实现类 |__org.apache.commons.dbutil...
分类:
数据库 时间:
2015-02-03 01:53:54
阅读次数:
219
这种提示的意思是说,引用的文件重复了.在引用json解析库中,clean工程的时候,报错说:Unable to execute dex: Multiple dex files define Lorg/apache/commons/collections/Buffer;Conversion to Da...
分类:
移动开发 时间:
2015-01-31 00:22:36
阅读次数:
250
import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;import redis.clients.jedis.Jedis;import redis.clients.jedis.JedisPo...
分类:
其他好文 时间:
2015-01-25 12:20:54
阅读次数:
131
今天在使用FTPClient下载文件时,登录成功了,但是提示下图所示的错误信息: 出现这个问题,本以为设置的读取文件目录不对,尝试修改多次无果。为了排除路径的问题,在firefox中安装了插件“FireFTP”,连接上之后,可以正常下载,于是该问题排除。 后来在http://blog.csdn.net/wangjinwei6912/article/details/6603152 看到...
分类:
Web程序 时间:
2015-01-23 18:32:26
阅读次数:
720
Apache Commons DbUtils使用手册作者:chszs,转载需注明。博客主页:http://blog.csdn.net/chszs一、介绍DBUtils是个小巧的JDBC轻量级封装的工具包,其最核心的特性是在JDBC的基础上做了一层封装,主要是对结果集的封装,可以直接将查询出来的结果集封装成JavaBean,旨在简化JDBC代码混乱与重复。JDBC代码开发,存在很多难点:1)操作过程...
分类:
数据库 时间:
2015-01-23 09:35:28
阅读次数:
350
一、简介
(一)需要的jar包
1、需要的jar包:spring、hibernate、mysql、xml、apache-commons等等的jar包。
2、以上jar包,如spring、xml和commos都是冗余的。
(二)分析
1、涉及到的实体、service、dao接口、jdbc配置文件以及service实现类都可以通用,只需要实...
分类:
数据库 时间:
2015-01-21 15:14:04
阅读次数:
549
文件上传:1. Struts2默认采用了apache commons-fileupload。需要引入commons-fileupload相关依赖包: * commons-io-1.3.2.jar * commons-fileupload-1.2.1.jar2. 表单中需要采用POST提交方式,编.....
分类:
Web程序 时间:
2015-01-17 19:17:11
阅读次数:
506
因为做Zip和Rar解析的时候,找到了mucommander工具,可将其jar包导入项目里执行发现报:类型转换错误,org.apache.commons.logging.impl.Log4JLogger cannot be cast to org.apache.commons.logging.imp...
分类:
其他好文 时间:
2015-01-17 15:06:18
阅读次数:
204