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 DEBUG level.
(日志data欄位過長洗掉了一部分 不然無法發帖)
springboot版本是1.3.0.RELEASE,
application.yml中加入
tomcat:
uri-encoding: UTF-8
spring:
http:
encoding:
charset: UTF-8
也沒有用,求解如何解決這個問題
uj5u.com熱心網友回復:
樓主解決了嗎,遇到了同樣的問題,求告知轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/17699.html
標籤:Web 開發
上一篇:至少一個引數沒有指定值
下一篇:element ui 表格
