随笔 - 266,  文章 - 1,  评论 - 66,  阅读 - 85万
12 2015 档案
json 帮助工具
摘要:import java.lang.reflect.Type;import com.google.gson.Gson;/*** json 帮助工具*/public final class GsonUtil { private GsonUtil() { } /** * Object转JSON对象 *... 阅读全文
posted @ 2015-12-21 09:32 风又奈何 阅读(237) 评论(0) 推荐(0) 编辑
多线程处理
摘要:用一个类类继承Thread,并实现run方法,在run方法中写相关实现逻辑Future future = MyThreadPool.submit(qdt);/** * 等待各个线程任务完成 * @param futures */ @SuppressWarnings("rawtypes") pr... 阅读全文
posted @ 2015-12-20 15:37 风又奈何 阅读(164) 评论(0) 推荐(0) 编辑
自定义注解
摘要:import java.lang.annotation.Retention;import java.lang.annotation.RetentionPolicy;/*** 方法注解* */@Retention(RetentionPolicy.RUNTIME)// @Target(ElementTy... 阅读全文
posted @ 2015-12-18 15:54 风又奈何 阅读(327) 评论(0) 推荐(0) 编辑


< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示