开发者

PathParam how to set Regex to allow URL?

I am using @PathParam and the request for开发者_运维问答mat is like this:

@Path("/XXX/XXX/{testvariable:[\\\\s\\\\S]+}")

Here, testvariable can take values like http://google.com/myname.txt, 191.123.122.333 or in short a String with any special characters. The regex that I used doesn't seem to allow the value "http://google.com/myname.txt" for this.

I get response saying, .No operation matching request path.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜