我知道有很多解决方案(将默认构造函数添加到响应POJO类中),但是我的问题是我无法更改API。我必须使用它,并且无法更改REST API,并且可以由邮递员调用该API。我需要在我的API中调用该API。
在邮递员中,回复结构为
{
"customerResponseWrapper": {
"responseCode": "OK",
"responseMessage": "SUCCESS",
"contractResponse": {
"code": "00",
"messages": [],
"processId": null,
"serverName": null,
"subCode": null,
"custNum": "7300000022",
"zipCode": "60102 "
}
},
"correctResponse": true,
"errorMessage": ""
}
我正在使用Jackson课程。有任何建议。