URL路径参数编码

URL Path Parameter Encoding

我正在为改进的路径参数编码而苦苦挣扎:

Response{protocol=http/1.1, code=400, message=Bad Request, url=http://localhost:8080/nuxeo/api/v1/path/default-domain%2Fblabla}

Tomcat 出于安全原因限制了他的 URL 验证:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0450.

所以我想直接在我的路径参数中发送'/',而不是在 %2F 中对其进行编码。我怎样才能实现它?

谢谢!

parent-2.0.0-beta4起,@Path注解的参数现在可以正常使用了。