Commit 97fd06a1935be2829c232f4aa57a7277f3bb1cfe
1 parent
5505e4dc
m
Showing
2 changed files
with
8 additions
and
8 deletions
trash-common/pom.xml
| ... | ... | @@ -139,13 +139,6 @@ |
| 139 | 139 | <artifactId>mybatis-plus-boot-starter</artifactId> |
| 140 | 140 | <version>3.4.1</version> |
| 141 | 141 | </dependency> |
| 142 | - | |
| 143 | - <dependency> | |
| 144 | - <groupId>com.google.code.gson</groupId> | |
| 145 | - <artifactId>gson</artifactId> | |
| 146 | - <version>2.3.1</version> | |
| 147 | - </dependency> | |
| 148 | - | |
| 149 | 142 | </dependencies> |
| 150 | 143 | |
| 151 | 144 | </project> |
| 152 | 145 | \ No newline at end of file | ... | ... |
trash-common/src/main/java/com/trash/common/utils/util/JsonUtil.java
| 1 | 1 | package com.trash.common.utils.util; |
| 2 | -import com.google.gson.*; | |
| 2 | + | |
| 3 | 3 | |
| 4 | 4 | import java.lang.reflect.Type; |
| 5 | 5 | import java.util.ArrayList; |
| 6 | 6 | import java.util.List; |
| 7 | 7 | |
| 8 | +import com.google.gson.Gson; | |
| 9 | +import com.google.gson.GsonBuilder; | |
| 10 | +import com.google.gson.JsonArray; | |
| 11 | +import com.google.gson.JsonElement; | |
| 12 | +import com.google.gson.JsonParser; | |
| 13 | +import com.google.gson.JsonSyntaxException; | |
| 14 | + | |
| 8 | 15 | public class JsonUtil { |
| 9 | 16 | public static Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd HH:mm:ss").create(); |
| 10 | 17 | ... | ... |