首页 > 编程语言 > 详细

JavaWeb 之 使用 Gson 的使用

时间:2020-03-13 21:23:13      阅读:62      评论:0      收藏:0      [点我收藏+]

一、Gson Summary

   GSON 是 Google提供的用来在 Java 对象和 JSON 数据之间进行映射的 Java 类库,可以快速的将一个 Json 字符转成一个 Java 对象,或者将一个 Java 对象转化为 Json 字符串。

    gson 在 github 上开源地址:https://github.com/google/gson

   二进制开发包下载:gson 二进制开发包下载地址:https://search.maven.org/artifact/com.google.code.gson/gson/2.8.5/jar

   jar 包下载:   gson-2.8.4.jar下载gson-2.8.5.jar下载

   Maven 依赖: 

      gson 的 Maven 仓库地址:https://mvnrepository.com/artifact/com.google.code.gson/gson

   Maven依赖:

 

 1 <!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
 2 <dependency>
 3   <groupId>com.google.code.gson</groupId>
 4   <artifactId>gson</artifactId>
 5   <version>2.8.5</version>
 6 </dependency>
 7 
 8 <!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
 9 <dependency>
10     <groupId>com.google.code.gson</groupId>
11     <artifactId>gson</artifactId>
12     <version>2.8.4</version>
13 </dependency>

 

 

 

二、

三、

四、

JavaWeb 之 使用 Gson 的使用

原文:https://www.cnblogs.com/niujifei/p/12488904.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!