1、日期转换默认格式覆盖注解格式的bug;com.alibaba.fastjson.serializer.JSONSerializer#writeWithFormat修改后的代码:publicfinalvoidwriteWithFormat(Objectobject,Stringformat){
if(objectinstanceofDate){
DateFormatdateFormat=this.getDateFormat();
if(format!=null..
分类:
Web程序 时间:
2017-10-18 20:00:46
阅读次数:
271
SVN:http://code.alibabatech.com/svn/fastjson/trunk/WIKI:http://code.alibabatech.com/wiki/display/FastJSON/Home pom.xml文件中加入依赖依赖: <dependency> <groupId ...
分类:
Web程序 时间:
2017-10-17 12:40:40
阅读次数:
150
使用ssm框架整合,oracle数据库 框架: Spring SpringMVC MyBatis 导包: 1, spring 2, MyBatis 3, mybatis-spring 4, fastjson 5, aspectweaver AspectJ框架 6, log4j 打印日志信息 7, o ...
分类:
其他好文 时间:
2017-10-16 09:48:13
阅读次数:
222
框架: Spring SpringMVC MyBatis 题目: 投票系统 导包: 1, spring 2, MyBatis 3, mybatis-spring 4, fastjson 5, aspectweaver AspectJ框架 6, log4j 打印日志信息 7, ojdbc6.jar 8 ...
分类:
其他好文 时间:
2017-10-15 22:40:54
阅读次数:
356
SSM框架整合 Spring SpringMVC MyBatis 导包: 1, spring 2, MyBatis 3, mybatis-spring 4, fastjson 5, aspectweaver AspectJ框架 6, log4j 打印日志信息 7, ojdbc6.jar 8, jst ...
分类:
编程语言 时间:
2017-10-15 22:37:22
阅读次数:
4085
第一个是工具类, MapUtil.java 然后是具体的实现工具类,使用了阿里巴巴的 fastjson 工具包;里面的测试类可以忽略 ...
分类:
数据库 时间:
2017-10-15 19:53:43
阅读次数:
315
从官方文档入手: 常见问题与快速上手:https://github.com/alibaba/fastjson/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98 各种使用场景(与Spring集成等):https://github.com/Alibaba/fastjso ...
分类:
Web程序 时间:
2017-10-06 00:02:44
阅读次数:
239
1.需要阿里巴巴的fastjson.jar 2.将json字符串转为JSONObject,通过JSONObject.parseObject(json字符串),取值的话通过json对象的getString(),getIntValue()等等获取JSONObject的值 2.将json字符串转为JSON ...
分类:
Web程序 时间:
2017-09-27 14:02:37
阅读次数:
319
由于没有写博客的习惯,一直坚持不下来。 但是这次在重构中遇到这个bug忍不住要写下来。太有趣啦。 问题是这样的: 为了方便app对返回的数据处理,空数组返回[],空对象返回null, 个人喜欢阿里,所以引入了FastJson。所有的返回值都封装成下面的Result对象返回。最后发现大部分时候data ...
分类:
Web程序 时间:
2017-09-26 13:01:45
阅读次数:
276
1. 怎么获得fastjson? 你可以通过如下地方下载fastjson: maven中央仓库: http://central.maven.org/maven2/com/alibaba/fastjson/ Sourceforge.net : https://sourceforge.net/proje ...
分类:
Web程序 时间:
2017-09-26 00:00:46
阅读次数:
298