编程语言
首页 > 编程语言> > Java : Character decoding failed.

Java : Character decoding failed.

作者:互联网

信息 :org.apache.tomcat.util.http.Parameters [DirectJDKLog.java : 173] Character decoding failed. Parameter [param] with value [] 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.

原因 :http接口请求,携带参数中含有%, 编码出错,导致数据传输为空。

解决 :param.replaceAll("%" , "%25");

 

标签:Java,corrupted,Character,param,decoding,Note,failed
来源: https://www.cnblogs.com/chensz-ws/p/15407957.html