当我尝试通过从邮递员中选择Jraw -JSON类型来将Delete请求作为子文件发送时。我收到以下错误。我从互联网上进行了详细搜索,发现了类似的错误,但没有任何解决方案。您可以在下面看到“删除”请求,并在发送GET请求后获得结果。
我对POSTMAN的删除请求:
{"MyCfgTestService.TEST_ENUM"}
错误:
2020-02-11 21:20:37.109 WARN [-,906c2c05c5f88216,906c2c05c5f88216,false] 87038 --- [nio- 8014-exec-1] .m.m.a.ExceptionHandlerExceptionResolver : Resolved exception caused by Handler execution: org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize instance of `java.util.ArrayList` out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.util.ArrayList` out of START_OBJECT token
at [Source: (PushbackInputStream); line: 1, column: 1]
我从邮递员那里获取请求:
{
"name": "test",
"profiles": [
"native"
],
"label": "beta",
"version": null,
"state": null,
"propertySources": [
{
"name": "file:////Users/alperkopuz/config-repo/test.yaml",
"source": {
"MyCfgTestService.TEST_NUMBER": 1,
"MyCfgTestService.TEST_TEXT": "default",
"MyCfgTestService.TEST_TIMESTAMP": "\n0\n",
"MyCfgTestService.TEST_ENUM": "One",
"MyCfgTestService.TEST_BOOLEAN": false,
"MyCfgTestService.TEST_TEXTAREA": "line1\nline2\tblablabla\n",
"MyCfgTestService.TEST_PASSWORD": "secret"
}
}
]
}