Java 开发所需json的jar包,项目对象转json格式, Map map=HashMap(); map.put("sex","man"); toJson(map); /** * 将得到的数据以json格式进行输出,如果对象不存在则输出空字符串 * * @param obj * 要转换成json的对象 */ protected String toJson(Object obj) { String json = ""; if (obj != null) { if (isArray(obj)) { JSONArray jsonArray = JSONArray.fromObject(obj); json = jsonArray.toString(); } else { JSONObject jsonObject = JSONObject.fromObject(obj); json = jsonObject.toString(); } System.out.println(json); } return json; } /** * 判断对象是否是集合类型 * * @param obj * @return */ private boolean isArray(Object obj) { return obj instanceof Collection || obj.getClass().isArray(); }
2019-12-21 22:21:04 1.16MB Java json jar
1
httpservlet的jar包,修复httpservlet报错
2019-12-21 22:02:10 183KB servlet
1
建立管理长连接、推送、通知、数据传输、自定义协议等等 Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients. Netty is a NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients. It greatly simplifies and streamlines network programming such as TCP and UDP socket server. 'Quick and easy' doesn't mean that a resulting application will suffer from a maintainability or a performance issue. Netty has been designed carefully with the experiences earned from the implementation of a lot of protocols such as FTP, SMTP, HTTP, and various binary and text-based legacy protocols. As a result, Netty has succeeded to find a way to achieve ease of development, performance, stability, and flexibility without a compromise.
2019-12-21 21:53:38 3.63MB netty java netty java
1
recyclerview-v7-25.3.1-sources.jar 最新版 recyclerview 官方jar包,可直接导入使用
2019-12-21 21:53:38 267KB recyclerview 25.3.1 最新 官方
1
mysql8,和mysql5的jar包,SpringJDBC的jar包,druid的jar包,
2019-12-21 21:48:32 7.46MB jar包
1
openfire4.2.2登录方式变更,此资源可以帮助你省去找jar包的烦恼,通过此资源,本人已实现登录, 注册
2019-12-21 21:41:21 9.55MB openfire smack4.2.2
1
java调用ibmmq最全版本jar包,包含connectorjava调用ibmmq最全版本jar包,包含connectorjava调用ibmmq最全版本jar包,包含connector
2019-12-21 21:28:28 4.82MB ibmmq java
1
在使用jclasslib进行class内容修改的使用,用到jclasslib总是找不到jclasslib.jar包在哪,这就是你要找的,直接导入项目即可,亲测可用。
2019-12-21 21:26:28 167KB jclasslib 修改class 修改jar
1
jxl完美实现Excel加水印(内附源码及jar包,基于jxl2.6.12修改编译版)
2019-12-21 21:24:12 761KB java jxl Excel 水印
1
SSH三大整合jar包,适用于SSH框架开发时的jar包导入。
2019-12-21 20:52:10 17.86MB SSH整合jar包
1