framework/src/main/java/com/yuanchu/limslaboratory/utils/JackSonUtil.java
@@ -14,8 +14,6 @@ /** * JSON解析处理 * * @author 张宾 */ @Component public class JackSonUtil { @@ -94,6 +92,14 @@ } } /** * 字符串转对象 * @param str * @param valueType * @return * @param <T> * @throws Exception */ public static <T> T unmarshal(String str, Class<T> valueType) throws Exception { try { return OBJECT_MAPPER.readValue(str, valueType);