07 2015 档案

 
java 自定义注解
摘要:一.自定义注解类 Target 限制注解的使用范围 TYPE, //用于类,接口,枚举但不能是注解 FIELD, //字段上,包括枚举值 METHOD, //方法,不包括构造方法 PARAMETER, //方法的参数 CONSTRUCTOR, //构造方法 LOCAL_VARIABLE, //本地... 阅读全文
posted @ 2015-07-21 11:52 执笔 阅读(109) 评论(0) 推荐(0)
java 反射机制
摘要:通过反射得到方法:方法关键字含义getDeclaredMethods()获取所有的方法getReturnType()获得方法的放回类型getParameterTypes()获得方法的传入参数类型getDeclaredMethod("方法名",参数类型.class,……)获得特定的方法构造方法关键字含... 阅读全文
posted @ 2015-07-21 11:16 执笔 阅读(108) 评论(0) 推荐(0)
Android上传图片到服务器
摘要:一.android需要导入异步请求的jar包AsyncHttpClientpublic static void reg(final Context cont,Bitmap photodata,String regData) { try { ByteArrayOut... 阅读全文
posted @ 2015-07-11 19:42 执笔 阅读(224) 评论(0) 推荐(0)
struts2 配置拦截器
摘要:第一步:继承MethodFilterInterceptor写自己的自定义拦截器 1 import org.apache.struts2.ServletActionContext; 2 3 import com.opensymphony.xwork2.Action; 4 import com.ope... 阅读全文
posted @ 2015-07-07 12:25 执笔 阅读(94) 评论(0) 推荐(0)