Gson替换掉多漏洞的FastJson
作者:互联网
添加依赖:
<!-- gson --> <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.8.5</version> </dependency>
测试:
DemoVo vo = new DemoVo(); System.out.println(new Gson().toJson(vo));
标签:FastJson,gson,漏洞,new,DemoVo,vo,Gson 来源: https://www.cnblogs.com/king-dom/p/15841794.html