工作中用到的开源组件列表
maven中央仓库:http://mvnrepository.com 在线API文档:http://tool.oschina.net/apidocs
1、jackson
Jackson是一个流行的基于Java的JSON处理框架 官方wiki:http://wiki.fasterxml.com/JacksonInFiveMinutes 官方文档:http://wiki.fasterxml.com/JacksonDocumentation 学习参考: Json转换利器Gson之实例 系列,顺便也学习一下GSON
ref: http://lijingshou.iteye.com/blog/2003020
2、okhttp
类似于httpclient。
OkHttpClient client = new OkHttpClient();
String run(String url) throws IOException {
Request request = new Request.Builder()
.url(url)
.build();
Response response = client.newCall(request).execute();
return response.body().string();
}
官方文档: https://square.github.io/okhttp/
3、google collections
google collections是google的工程师利用传说中的“20%时间”开发的集合库,它是对java.util的扩展,提供了很多实用的类来简化代码。google collections使用了范型,所以要求jdk1.5以上。
github:http://code.google.com/p/google-collections/
google guava
Guava 是一个 Google 的基于java1.6的类库集合的扩展项目,包括 collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O, 等等. 这些高质量的 API 可以使你的JAVa代码更加优雅,更加简洁,让你工作更加轻松愉悦。
理解:加强Java某些类的作用 github:https://github.com/google/guava
ref: 1、https://ifeve.com/google-guava/
4、fastjson
alibaba出品。
github:https://github.com/alibaba/fastjson
Fastjson是一个Java语言编写的高性能功能完善的JSON库。它采用一种“假定有序快速匹配”的算法,把JSON Parse的性能提升到极致,是目前Java语言中最快的JSON库。Fastjson接口简单易用,已经被广泛使用在缓存序列化、协议交互、Web输出、Android客户端等多种应用场景。
文档: https://github.com/Alibaba/fastjson/wiki/%E9%A6%96%E9%A1%B5
5、cglib
代理工具,待了解
6、google Gson
Gson(又称Google Gson)是Google公司发布的一个开放源代码的Java库,主要用途为序列化Java对象为JSON字符串,或反序列化JSON字符串成Java对象。而JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式,易于人阅读和编写,同时也易于机器解析和生成,广泛应用于各种数据的交互中,尤其是服务器与客户端的交互。
7、jedis
Java中操作redis数据库
ref: 1、http://www.jianshu.com/p/7913f9984765
hw:
Jedis jedis = new Jedis("localhost", 6379);
jedis.set("singleJedis", "hello jedis!");
System.out.println(jedis.get("singleJedis"));
jedis.close();
8、tk.mybatis
不客气的说,使用这个通用Mapper甚至能改变你对Mybatis单表基础操作不方便的想法,使用它你能简单的使用单表的增删改查,包含动态的增删改查.
ref: 1、http://blog.csdn.net/shikaiwencn/article/details/52485883 2、http://blog.csdn.net/isea533/article/details/41457529 作者 3、
项目地址: 开源中国:https://git.oschina.net/free/Mapper
官方文档: https://mapperhelper.github.io/docs/
暂时就先记录这么多了。改bug去啦~~