Struts2
facetoqiang
这个作者很懒,什么都没留下…
展开
-
文件上传,保存工具类
public static String fileupload(File file, String srcName, String destName, String addType) throws Exception { SimpleDateFormat dateformat = new SimpleDateFormat("yyyyMMddHH"); // 拼写服...原创 2013-09-13 11:11:02 · 174 阅读 · 1 评论 -
Struts2 中出现的Jdk动态代理实例和方法
package com.opensymphony.xwork2.inject;import java.lang.reflect.InvocationHandler;import java.lang.reflect.Method;import java.lang.reflect.InvocationTargetException;import java.lang.reflec...原创 2013-10-06 14:36:22 · 137 阅读 · 0 评论 -
Struts2依赖注入关联的类
// ContainerImpl 中定义的静态内部类 /** * Injects a field or method in a given object. */ interface Injector extends Serializable { void inject(InternalContext context, Object o); ...原创 2013-10-06 15:53:12 · 133 阅读 · 0 评论 -
Container中关联的变量
package com.opensymphony.xwork2.inject;/** * Dependency mapping key. Uniquely identified by the required type and name. * * @author crazybob@google.com (Bob Lee) */class Key<T> {...原创 2013-10-06 16:09:03 · 139 阅读 · 0 评论