如何连接code方括号在春天网址是什么? [英] How to encode square brackets in spring url?
本文介绍了如何连接code方括号在春天网址是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有春天有括号url.But我得到了同样的坏reuqest路径变量。我使用EN codeUriComponent编码骨干框架中的URL。但仍即使URL为EN codeD正确我收到错误的请求。
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.
推荐答案
其实这个问题是因为在路径变量反斜线的,它需要一个双编码它来获得EN codeD正确。
Actually the problem was because of backward slash in the path variable and it needs a double encoding for it to get encoded correctly.
这篇关于如何连接code方括号在春天网址是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文