1.背景 昨天在网上看到别人用aauto写本地小程序写的很爽,我觉得如果java的jre能小一点,凭借java庞大的第三方类库写小工具也还算不错的。本人就经常用eclipse+一些commons包写些小工具软件。不过可惜的是只能自己用,对于没装java环境的人来说就麻烦了。所以就去网上找到了一个轻....
分类:
编程语言 时间:
2014-07-22 22:48:34
阅读次数:
261
// 抽象书本类
abstract class AbstractBookTopic {
abstract function getTopic();
abstract function getTitle();
abstract function setTitle($title_in);
}
// 书本类,继承自抽象书本类
class ...
分类:
Web程序 时间:
2014-07-22 09:00:06
阅读次数:
228
文件上传的方法主要目前有两个常用的,一个是SmartUpload,一个是Apache的Commons fileupload. 我们这里主要介绍下第二个的用法,首先要上传文件,注意几个问题: 1 form表单内,要添加空间 2 form表单的内容格式要定义成multipart/form-da...
分类:
其他好文 时间:
2014-07-20 09:37:34
阅读次数:
286
一、设计原则
(1)减少内存碎片
(2)减少向操作系统申请内存的次数
(3)降低各个模块的开发效率
二、源码结构
struct ngx_pool_s {
ngx_pool_data_t d;
size_t max;
ngx_pool_t *current;
ngx_chain_t ...
分类:
其他好文 时间:
2014-07-19 23:16:14
阅读次数:
258
package com.cn.wangk.util; import java.util.HashMap;import java.util.regex.Matcher;import java.util.regex.Pattern; import org.apache.commons.lang.Stri...
分类:
编程语言 时间:
2014-07-19 11:36:20
阅读次数:
290
最近公司开发的几个项目中,后台Action向前端传递数据都是Json格式,于是对JSONObject、JSONArray简单的研究了一下,废话不多说,想使用JSONObject、JSONArray,策则在项目中必须要有commons-lang.jar commons-beanutils.jar co...
分类:
Web程序 时间:
2014-07-19 00:36:28
阅读次数:
239
参考:http://tool.oschina.net/commons?type=2
分类:
Web程序 时间:
2014-07-18 15:20:55
阅读次数:
253
Chain of Responsibility in the Real WorldThe idea of the Chain Of Responsibility is that it avoids coupling the sender of the request to the receiver,...
分类:
其他好文 时间:
2014-07-18 08:36:38
阅读次数:
294
七月 17, 2014 4:56:01 下午 org.apache.catalina.core.StandardWrapperValve invokeSEVERE: Servlet.service() for servlet [dispatcher] in context with path [] ...
分类:
数据库 时间:
2014-07-17 22:28:55
阅读次数:
777
所需的jar包:1、commons-lang.jar 2、commons-beanutils.jar 3、commons-collections.jar 4、commons-logging.jar 5、ezmorph.jar 6、json-lib-2.2.2-jdk15.jar1. 把java 对象...
分类:
编程语言 时间:
2014-07-17 18:09:57
阅读次数:
213