com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 middle byte 0xcf
来源:5-7 完成注册超级管理员功能(移动端)

爱学习9爱生活
2021-02-16
当我的微信的nickname为,中文昵称的时候,报下面的错误:com.example.emos.wx.controller.form.RegisterForm[“nickname”]
1:47:51 ERROR 执行异常
org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Invalid UTF-8 middle byte 0xcf; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Invalid UTF-8 middle byte 0xcf
at [Source: (PushbackInputStream); line: 1, column: 199] (through reference chain: com.example.emos.wx.controller.form.RegisterForm[“nickname”])
at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:285)
at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.read(AbstractJackson2HttpMessageConverter.java:243)
at
1回答
-
神思者
2021-02-16
昵称里面不要有emoji字符
022021-02-17
相似问题