URLDecoder: Illegal hex characters in escape (%) pattern ...
生活随笔
收集整理的這篇文章主要介紹了
URLDecoder: Illegal hex characters in escape (%) pattern ...
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
URL中含有%,報錯如下:
URLDecoder: Illegal hex characters in escape (%) pattern …
解決:
uriStr = uriStr.replaceAll("%","%25");
這種情況一般是出現在連接mongoDB數據庫的時候,因為要把用戶名密碼寫在url中,而一般為了增加密碼復雜度,很多人就會加上%等特殊符號。
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的URLDecoder: Illegal hex characters in escape (%) pattern ...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [数据库]-----mysql数据的冷热
- 下一篇: 微信你scope 参数错误 php,微信