1、在IDEA 添加 GSON的应用jar包
缺少jar包,Gson使用会报红
https://blog.csdn.net/weixin_43145371/article/details/86666246
2、 安装GsonFormat插件
将json数据生成对应实体类
https://www.cnblogs.com/wanglzstudy/p/13408586.html
3、添加Gson依赖
缺少依赖会提示,程序包com.google.gson不存在
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.6</version>
</dependency>