修复不兼容项
This commit is contained in:
@@ -229,7 +229,7 @@ public abstract class BaseTest {
|
|||||||
try {
|
try {
|
||||||
ObjectMapper mapper = new ObjectMapper();
|
ObjectMapper mapper = new ObjectMapper();
|
||||||
mapper.disable(JsonParser.Feature.AUTO_CLOSE_SOURCE);
|
mapper.disable(JsonParser.Feature.AUTO_CLOSE_SOURCE);
|
||||||
response = mapper.readValue(json, responseType);
|
response = (Response<T>) mapper.readValue(json, responseType);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
logger.error("解析json Response对象错误,json:[{}]", json);
|
logger.error("解析json Response对象错误,json:[{}]", json);
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
Reference in New Issue
Block a user