修复不兼容项

This commit is contained in:
禾几海
2021-10-05 16:50:46 +08:00
parent 6cfa132a66
commit d667689f1a

View File

@@ -229,7 +229,7 @@ public abstract class BaseTest {
try {
ObjectMapper mapper = new ObjectMapper();
mapper.disable(JsonParser.Feature.AUTO_CLOSE_SOURCE);
response = mapper.readValue(json, responseType);
response = (Response<T>) mapper.readValue(json, responseType);
} catch (IOException e) {
logger.error("解析json Response对象错误json:[{}]", json);
e.printStackTrace();