fastjson 发布正式版本1.0.1

Fastjson是一款由阿里巴巴开发的高性能JSON处理器,它完全遵循json.org的规范,并且支持多种Java数据类型,如JavaBean、Map、Collections等。Fastjson不仅使用简便,还拥有极高的处理速度,超越了市场上其他主流的JSON解析库。此外,它还是一个开源项目,遵循Apache License 2.0协议。
Fast是一个JSON的Processor,功能强大、易用、快速的!
* 功能强大。完全兼容json.org的规范,支持Java Bean、Map、Collections、Date、Enum。
* 易用。提供简单易用的toJSONString和parseObject接口,直接支持Java Bean,不需要额外配置映射。
* 快速。比目前已知的其他Java JSON Processor都要快,包括JSON-LIB、Simple JSON、GSON、Jackson。
* 开源。目前Fastjson是一个开源项目,采用Apache License 2.0协议,是阿里巴巴开源平台中的一个项目,公开的svn地址是:[url]http://code.alibabatech.com/svn/fastjson[/url]/。公网上的 wiki地址是:[url]http://code.alibabatech.com/wiki/display/fastjson/fastjson[/url]

当前文档
* [url]http://code.alibabatech.com/wiki/display/fastjson/fastjson[/url]
* 下载该版本 [url]http://code.alibabatech.com/svn/fastjson/repository/com.alibaba.fastjson/1.0.1/fastjson-1.0.1.jar[/url]


Release Notes
Bug
* [FASTJSON-2] - null转成对象时抛异常
* [FASTJSON-3] - 反序列化时不支持List<Map<String, String>>类型

New Feature
* [FASTJSON-1] - 增加JavaBean到JSONObject之间的转换
* [FASTJSON-7] - parse对数组的支持
Some problems were encountered while building the effective model for com.open.capacity:statistical-center:jar:1.0.1 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework.boot:spring-boot-starter-web:jar -> duplicate declaration of version (?) @ line 86, column 21 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework.boot:spring-boot-starter-web:jar -> duplicate declaration of version (?) @ line 118, column 21 Some problems were encountered while building the effective model for com.open.capacity:job-admin:jar:1.0.1 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework.boot:spring-boot-starter-test:jar -> duplicate declaration of version (?) @ line 188, column 15 Some problems were encountered while building the effective model for com.open.capacity:job-for-mysql:jar:1.0.1 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.alibaba:fastjson:jar -> version 1.2.75 vs 1.2.4 @ line 67, column 21 Some problems were encountered while building the effective model for com.open.capacity:log-center:jar:1.0.1 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework.boot:spring-boot-starter-web:jar -> duplicate declaration of version (?) @ line 44, column 15 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework.boot:spring-boot-starter-web:jar -> duplicate declaration of version (?) @ line 74, column 15 Some problems were encountered while building the effective model for com.open.capacity:transaction-center:jar:1.0.1 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework.boot:spring-boot-starter-web:jar -> duplicate declaration of version (?) @ line 59, column 15 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework:spring-context-support:jar -> duplicate declaration of version (?) @ line 65, column 15 Some problems were encountered while building the effective model for com.open.capacity:cabin-center:jar:1.0.1 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.springframework.boot:spring-boot-configuration-processor:jar -> duplicate declaration of version (?) @ line 144, column 15 It is highly recommended to fix these problems because they threaten the stability of your build. For this reason, future Maven versions might no longer support building such malformed projects.
最新发布
11-07
在 Maven 构建项目时,可采用以下方法解决依赖重复声明版本的问题: ### 使用 `<dependencyManagement>` 标签 在项目的 `pom.xml` 文件里,借助 `<dependencyManagement>` 标签统一管理依赖版本。此标签能集中定义依赖的版本,子模块引用依赖时就无需指定版本,Maven 会自动采用 `<dependencyManagement>` 里定义的版本。示例如下: ```xml <project> <!-- 其他配置 --> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>2.7.2</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <version>2.7.2</version> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>2.0.31</version> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> </dependency> </dependencies> </project> ``` 在上述示例中,`<dependencyManagement>` 标签对依赖版本进行了集中管理,`<dependencies>` 标签里引用依赖时未指定版本,Maven 会自动使用 `<dependencyManagement>` 中定义的版本。 ### 使用属性定义版本 在 `pom.xml` 文件里使用 `<properties>` 标签定义依赖版本的属性,然后在依赖声明时引用这些属性。示例如下: ```xml <project> <!-- 其他配置 --> <properties> <spring-boot.version>2.7.2</spring-boot.version> <fastjson.version>2.0.31</fastjson.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>${spring-boot.version}</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <version>${spring-boot.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>${fastjson.version}</version> </dependency> </dependencies> </project> ``` 在这个示例中,`<properties>` 标签定义了 `spring-boot.version` 和 `fastjson.version` 属性,依赖声明时通过 `${属性名}` 的方式引用这些属性。 ### 继承父项目的依赖管理 若项目有父项目,可在父项目的 `pom.xml` 中使用 `<dependencyManagement>` 标签管理依赖版本,子项目继承父项目的依赖管理。示例如下: 父项目 `pom.xml`: ```xml <project> <!-- 其他配置 --> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>2.7.2</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <version>2.7.2</version> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>2.0.31</version> </dependency> </dependencies> </dependencyManagement> </project> ``` 子项目 `pom.xml`: ```xml <project> <parent> <groupId>com.example</groupId> <artifactId>parent-project</artifactId> <version>1.0.0</version> </parent> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> </dependency> </dependencies> </project> ``` 子项目继承了父项目的依赖管理,引用依赖时无需指定版本
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值