brnshop .NET+SQL 商城项目
brnshop .NET+SQL 商城项目。 后台管理、商家管理、用户中心、PC端、H5端。基础功能非常全面,可扩展性强
brnshop .NET+SQL 商城项目。 后台管理、商家管理、用户中心、PC端、H5端。基础功能非常全面,可扩展性强
废话不多说: 解压,替换项目 skywalking-netcore V7 官网上下载的包异常,替换上面的包从新编译即可通过。
前端开源框架~02基于layui,好部署,好上手。 直接解压运行index.html即可 学习layui好例子,0基础都可以学会,一看就会
网上缺少pdf-base64转换,因此个人开发一个小工具,期望对大家有用 绿色版PDF转换工具。转换base64 ——————pdf互转。
wifi(只要能连WIFI,就能散WIFI) 配合:https://download.csdn.net/download/a_158/8251453
根据以下参数请求,具体参数根据具体接口说明文档为准(请求参数与返回参数复制到http://www.bejson.com/、http://json.cn/里面查询更清晰)......
package com.json; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import net.sf.ezmorph.object.DateMorpher; import net.sf.json.JSONArray; import net.sf.json.JSONObject; import net.sf.json.JsonConfig; import net.sf.json.processors.JsonValueProcessor; import net.sf.json.util.CycleDetectionStrategy; import net.sf.json.util.JSONUtils; public class TestJsonServlet { /** * 从一个JSON 对象字符格式中得到一个java对象 * * @param jsonString * @param pojoCalss * @return */ @SuppressWarnings("unchecked") public static <T> T jsonToObject(String jsonString, Class<T> pojoCalss) { Object pojo; JSONObject jsonObject = JSONObject.fromObject(jsonString); pojo = JSONObject.toBean(jsonObject, pojoCalss); return (T) pojo; } /** * json字符串转换成集合 * * @param jsonString * @param pojoClass * @return */ @SuppressWarnings("unchecked") public static <T> List<T> jsonToList(String jsonString, Class<T> pojoClass) { JSONArray jsonArray = JSONArray.fromObject(jsonString); JSONObject jsonObject; Object pojoValue; List<T> list = new ArrayList<T>(); for (int i = 0; i < jsonArray.size(); i++) { jsonObject = jsonArray.getJSONObject(i); pojoValue = JSONObject.toBean(jsonObject, pojoClass); list.add((T) pojoValue); } return list; } /** * json字符串转换成集合 * * @param jsonString * @param pojoClass * @return */ @SuppressWarnings("unchecked") public static <T> List<T> jsonToList(String jsonString, Class<T> pojoClass, String dataFormat) { JsonConfig jsonConfig = configJson(dataFormat); JSONArray jsonArray = JSONArray.fromObject(jsonString, jsonConfig); JSONObject jsonObject; Object pojoValue; List<T> list = new ArrayList<T>(); for (int i = 0; i < jsonArray.size(); i++) { jsonObject = jsonArray.getJSONObject(i); pojoValue = JSONObject.toBean(jsonObject, pojoClass); list.add((T) pojoValue); } return list; } /** * 将java对象转换成json字符串 * * @param javaObj * @return */ public static String objectToJson(Object javaObj) { JSONObject json; json = JSONObject.fromObject(javaObj); return json.toString(); } /** * 将java对象转换成json字符串,并设定日期格式 * * @param javaObj * 要转换的java对象 * @param dataFormat * 制定的日期格式 * @return */ public static String objectToJson(Object javaObj, String dataFormat) { JSONObject json; JsonConfig jsonConfig = configJson(dataFormat); json = JSONObject.fromObject(javaObj, jsonConfig); return json.toString(); } /** * list变成json * * @param list * @return */ public static <T> String listToJson(List<T> list) { JSONArray json; json = JSONArray.fromObject(list); return json.toString(); } /** * list变成json * * @param list * @return */ public static <T> String listToJson(List<T> list, String dataFormat) { JSONArray json; JsonConfig jsonConfig = configJson(dataFormat); json = JSONArray.fromObject(list, jsonConfig); return json.toString(); } /** * JSON 时间解析器 * * @param datePattern * @return */ public static JsonConfig configJson(final String datePattern) { JSONUtils.getMorpherRegistry().registerMorpher(new DateMorpher(new String[] { datePattern })); JsonConfig jsonConfig = new JsonConfig(); jsonConfig.setIgnoreDefaultExcludes(false); jsonConfig.setCycleDetectionStrategy(CycleDetectionStrategy.LENIENT); jsonConfig.registerJsonValueProcessor(Date.class, new JsonValueProcessor() { @Override public Object processObjectValue(String key, Object value, JsonConfig jsonConfig) { if (value instanceof Date) { String str = new SimpleDateFormat(datePattern).format((Date) value); return str; } return value == null ? null : value.toString(); } @Override public Object processArrayValue(Object value, JsonConfig jsonConfig) { String[] obj = {}; if (value instanceof Date[]) { SimpleDateFormat sf = new SimpleDateFormat(datePattern); Date[] dates = (Date[]) value; obj = new String[dates.length]; for (int i = 0; i < dates.length; i++) { obj[i] = sf.format(dates[i]); } } return obj; } }); return jsonConfig; } }
爱听音乐 一个简单的音乐播放器 支持多种格式 无需安装 适合运行环境XP win7 win8 netFormwork 4 5及以上版本 持续更新状态 V1.0.0.4更新版 1、支持同步歌词 2、支持自动检索LRC歌词编码 3、修改优化外观 4、修复部分BUG ----------------------- 该版本还是开发中(免费下载).....后期继续上传 无毒无害、欢迎各位大牛提出建议
爱听音乐 一个简单的音乐播放器 支持多种格式 无需安装 适合运行环境XP win7 win8 netFormwork 4 5及以上版本 持续更新状态
签到新秀
创作能手
分享精英
持续创作