<!-- 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));
2023-10-23 20:59:22
<!-- 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));