翻译{"code":500,"msg":"Invalid JSON input: Cannot construct instance of com.qianya.dto.api.ApiQueuesAddParm (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('{"inspectionNo": "77622", "name": "\u6108\u774a", "sex": 0, "age": 48, "type": 4, "checkItem": 0, "isAddProject": 0, "departmentsDataList": [{"departmentsId": 1, "departmentsProjectNumber": "1,2,3", "isBeforeDinner": 0}, {"departmentsId": 2, "departmentsProjectNumber": "4,5,6", "isBeforeDinner": 0}, {"departmentsId": 3, "departmentsProjectNumber": "7,8,9", "isBeforeDinner": 0}]}'); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of com.qianya.dto.api.ApiQueuesAddParm (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('{"inspectionNo": "77622", "name": "\u6108\u774a", "sex": 0, "age": 48, "type": 4, "checkItem": 0, "isAddProject": 0, "departmentsDataList": [{"departmentsId": 1, "departmentsProjectNumber": "1,2,3", "isBeforeDinner": 0}, {"departmentsId": 2, "departmentsProjectNumber": "4,5,6", "isBeforeDinner": 0}, {"departmentsId": 3, "departmentsProjectNumber": "7,8,9", "isBeforeDinner": 0}]}')\n at [Source: (PushbackInputStream); line: 1, column: 1]","data":null} 200
时间: 2023-07-06 17:36:19 浏览: 270
{"code":500,"msg":"无效的JSON输入:无法构建 com.qianya.dto.api.ApiQueuesAddParm 实例(尽管至少存在一个创建者):没有 String-argument 构造函数/工厂方法从 String 值 ('{"inspectionNo": "77622", "name": "\u6108\u774a", "sex": 0, "age": 48, "type": 4, "checkItem": 0, "isAddProject": 0, "departmentsDataList": [{"departmentsId": 1, "departmentsProjectNumber": "1,2,3", "isBeforeDinner": 0}, {"departmentsId": 2, "departmentsProjectNumber": "4,5,6", "isBeforeDinner": 0}, {"departmentsId": 3, "departmentsProjectNumber": "7,8,9", "isBeforeDinner": 0}]}') 反序列化; 嵌套异常是 com.fasterxml.jackson.databind.exc.MismatchedInputException: 无法构建 com.qianya.dto.api.ApiQueuesAddParm 实例(尽管至少存在一个创建者):没有 String-argument 构造函数/工厂方法从 String 值 ('{"inspectionNo": "77622", "name": "\u6108\u774a", "sex": 0, "age": 48, "type": 4, "checkItem": 0, "isAddProject": 0, "departmentsDataList": [{"departmentsId": 1, "departmentsProjectNumber": "1,2,3", "isBeforeDinner": 0}, {"departmentsId": 2, "departmentsProjectNumber": "4,5,6", "isBeforeDinner": 0}, {"departmentsId": 3, "departmentsProjectNumber": "7,8,9", "isBeforeDinner": 0}]}')\n 在 [Source: (PushbackInputStream); line: 1, column: 1]","data":null} 200
该段信息是一段 JSON 格式的错误信息。大致意思为:传入的 JSON 数据无法被成功反序列化为 `com.qianya.dto.api.ApiQueuesAddParm` 对象,因为该对象没有一个接受字符串类型参数的构造方法或工厂方法。具体的错误信息为:
```
无法构建 com.qianya.dto.api.ApiQueuesAddParm 实例(尽管至少存在一个创建者):没有 String-argument 构造函数/工厂方法从 String 值 ('{"inspectionNo": "77622", "name": "\u6108\u774a", "sex": 0, "age": 48, "type": 4, "checkItem": 0, "isAddProject": 0, "departmentsDataList": [{"departmentsId": 1, "departmentsProjectNumber": "1,2,3", "isBeforeDinner": 0}, {"departmentsId": 2, "departmentsProjectNumber": "4,5,6", "isBeforeDinner": 0}, {"departmentsId": 3, "departmentsProjectNumber": "7,8,9", "isBeforeDinner": 0}]}') 反序列化; 嵌套异常是 com.fasterxml.jackson.databind.exc.MismatchedInputException: 无法构建 com.qianya.dto.api.ApiQueuesAddParm 实例(尽管至少存在一个创建者):没有 String-argument 构造函数/工厂方法从 String 值 ('{"inspectionNo": "77622", "name": "\u6108\u774a", "sex": 0, "age": 48, "type": 4, "checkItem": 0, "isAddProject": 0, "departmentsDataList": [{"departmentsId": 1, "departmentsProjectNumber": "1,2,3", "isBeforeDinner": 0}, {"departmentsId": 2, "departmentsProjectNumber": "4,5,6", "isBeforeDinner": 0}, {"departmentsId": 3, "departmentsProjectNumber": "7,8,9", "isBeforeDinner": 0}]}')
```
这通常是因为传入的 JSON 数据格式不正确或者目标对象的构造方法没有正确实现。建议检查传入的 JSON 数据格式是否正确以及目标对象的构造方法是否正确实现。
阅读全文