Please help me for My springboot app #246
Unanswered
SeoWooSoft
asked this question in
Q&A
Replies: 1 comment
-
I am not sure this is due to Jackson issue, but rather something about Spring Boot: you'd probably be better off bringing this up on Spring support forums. But simply from error message it looks like At any rate, exception is not thrown by Jackson and seems to have nothing Jackson-specific or related. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I migrated Spring Boot
Before Spring Boot : 2.4 Java : 1.6, Jackson : 2.11.3
After Spring Boot : 2.7.18 Java : 1.7, Jackson : 2.13.5
The application was running well before, but after the migration, an error occurred. How to Can i Fix without modify controller
Post Request Body {"data1":"value1", "data2":null}$['data2'] Use 'coerceInputValues = true' in 'Json {} builder to coerce nulls to default values. JSON input: .....60115","data2":null,"agreementOnline":null,"a.....; nested exception is kotlinx.serialization.json.internal.JsonDecodingException: Unexpected JSON token at offset 147: Expected string literal but 'null' literal was found at path: $ ['data2'] Use 'coerceInputValues = true' in 'Json {} builder to coerce nulls to default values. JSON input: .....60115","data2":null,"agreementOnline":null,"a.....
Controller Sourc @PostMapping("/api/MVUR/updatePtInfo") public ResultVO updatePtInfo(@RequestBody Map<String, String> params) throws Exception { Common.paramToMap(params); return transactionService.updatePtInfo(params); }
Error org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Unexpected JSON token at offset 147: Expected string literal but 'null' literal was found at path:
Beta Was this translation helpful? Give feedback.
All reactions