spring boot Character decoding failed

HGLC2008 2017-08-29 02:30:35
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年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
也没有用,求解如何解决这个问题
...全文
1217 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_41769796 2020-12-04
  • 打赏
  • 举报
回复
楼主有解决吗?
Forevermark993 2020-12-04
  • 打赏
  • 举报
回复
你是用tomcat启动还是什么,应该是配置没有起作用,然后大小post是2m在tomcat下,你看看是不是超过了2m
qq_40442590 2020-08-23
  • 打赏
  • 举报
回复
楼主解决了吗,遇到了同样的问题,求告知

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧