批量发送半成品

This commit is contained in:
zengzefeng
2021-03-08 09:15:52 +08:00
parent c3372d4bd2
commit 767cd90279
30 changed files with 735 additions and 230 deletions

View File

@@ -20,7 +20,7 @@ public class JsonUtils {
/**
* 初始化 objectMapper 属性
*
* <p>
* 通过这样的方式,使用 Spring 创建的 ObjectMapper Bean
*
* @param objectMapper ObjectMapper 对象
@@ -67,4 +67,12 @@ public class JsonUtils {
}
}
public static <T> T parseByType(String text, TypeReference<T> typeReference) {
try {
return objectMapper.readValue(text, typeReference);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}