使用提供JsonMappingException的Rest API:未找到类型[简单类型,类]的合适构造函数:无法从JSON对象实例化

时间:2018-12-24 02:31:15

标签: rest spring-rest

我知道有很多解决方案(将默认构造函数添加到响应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课程。有任何建议。

0 个答案:

没有答案