GSON的基本用法七

获取GSON的版本

import com.google.gson.internal.GsonBuildConfig;


/**
 * @author yongjar
 * @date 2020/4/28
 */
public class GsonTester {

    public static void main(String args[]) {


        //获取GSON的版本
        String version = GsonBuildConfig.VERSION;
        System.out.println(version);


    }

}
posted @ 2020-05-13 17:41  yongjar  阅读(303)  评论(0编辑  收藏  举报