Using Gson with Maven2 | 张恒镭的博客

Using Gson with Maven2

时间:14-07-18 栏目:java编程 作者:恒镭, 张 评论:0 点击: 2,853 次

 

To use Gson with Maven2/3, you can use the Gson version available in Maven Central by adding the following dependency:
<dependencies>
    <!--  Gson: Java to Json conversion -->
    <dependency>
      <groupId>com.google.code.gson</groupId>
      <artifactId>gson</artifactId>
      <version>2.2.4</version>
      <scope>compile</scope>
    </dependency>
</dependencies>
That is it, now your maven project is Gson enabled.

声明: 本文由( 恒镭, 张 )原创编译,转载请保留链接: Using Gson with Maven2

Using Gson with Maven2:等您坐沙发呢!

发表评论




------====== 本站公告 ======------
欢迎关注我的博客。

其他