How to encode square brackets in spring url?

I have a path variable which has square brackets in spring url.But i am getting bad reuqest for the same. I am encoding the url in backbone framework using encodeUriComponent. But still even after url being encoded correctly i am getting bad request.


实际上问题是因为路径变量中的反斜杠,它需要一个双重编码才能正确编码。

链接地址: http://www.djcxy.com/p/70170.html

上一篇: http url参数无效的字符错误

下一篇: 如何编码春季url中的方括号?