Home > Back-end >  Spring boot Character decoding failed
Spring boot Character decoding failed

Time:11-29

spring boot 搭建的工程 ,接受post提交的请求,data参数较长且有中文,后台日志报org.apache.tomcat.util.http.Parameters(180) - Character decoding failed 详细日志见截图
2017-08-28 15:33:45.623 [http-nio-8080-exec-2] INFO  org.apache.tomcat.util.http.Parameters(180) - Character decoding failed. Parameter [data] with value [{"report_structure":"{"compensates":[],"loans":[{"original":"2012?1′10???2"}]}}}"}] has been ignored. Note that the name and value quoted here may be corrupted due to the failed decoding. Use debug level logging to see the original, non-corrupted values.
Note: further occurrences of Parameter errors will be logged at the DEBUG level.


(log data field is too long to delete the part or you can't post)
Sure they are using 1.3.0 springboot version RELEASE,
Application. Yml add
Tomcat:
Uri - encoding: utf-8
Spring:
HTTP:
Encoding:
Charset: utf-8
Also was not used, to solve how to solve this problem

CodePudding user response:

The original poster to solve, meet the same problem, please inform
  • Related