Today, the following error message will be prompted when you copy the project from the old workspace to the directory of the new workspace:
Request","exception":"org.springframework.http.converter.HttpMessageNotReadableException","message":"JSON parse error: Invalid UTF-8 middle byte 0x3f
The reasons for the above errors are: the JVM parameter does not configure the encoding format and the eclipse workspace does not specify the encoding format.
Solution: specify the JVM encoding format
Open windows -> Preferences-> java-> Installed jres select the local JRE version and click Edit
Add specified encoding format:
-Dfile.encoding=UTF-8
Specify the Workspace encoding format.
window-Preferences-General-workspace-other: UTF-8
Read More:
- TomcatJSON parse error: Invalid UTF-8 [How to Solve]
- [Solved] JSON parse error: Cannot construct instance of
- [Solved] org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot
- [Solved] HttpMessageNotReadableException: JSON parse error: Unrecognized field “xxxx“
- org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deseria
- [Solved] JSON parse error: Cannot deserialize instance of `java.util.ArrayList<..> out of START_OBJECT token;
- [Solved] SpringBoot Date Convert Error: JSON parse error: Cannot deserialize value of type `java.time.LocalDateTime`
- [Solved] Feign Call Port Error: HttpMessageNotReadableException:JSON parse error:Illegal character ((CTRL-CHAR, code 31)
- OpenFeign Error: {“code“:1,“msg“:“JSON parse error: Illegal character ((CTRL-CHAR, code 31))
- [Solved] MultipartException: Failed to parse multipart servlet request; nested exception is java.lang.Runtime
- [Solved] org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class
- [Fixed] Disgusting bug Error:Failed to Load project configuration: cannot parse filemessage: content is not allowed in the preface.
- Uncaught SyntaxError: Unexpected token o in JSON at position 1 [How to Solve]
- How to Solve SSM JSON Chinese Messy Code Issue
- RSA Decryption Error: java.security.InvalidKeyException: IOException : algid parse error, not a sequence
- [Solved] springsecurity custom exceptions: Error: Parse Error: Response overflow
- [Solved] com.alibaba.fastjson.JSONException: syntax error, pos 1, json
- [Solved] Openfeign Error: error: Failed to parse Date value…
- JAVA: How to Read JSON Format Data (Web Game Development)
- How to Remove “Devtools failed to parse sourcemap” Warning