开发者

PathParam how to set Regex to allow URL?

开发者 https://www.devze.com 2023-01-10 05:01 出处:网络
I am using @PathParam and the request for开发者_运维问答mat is like this: @Path(\"/XXX/XXX/{testvariable:[\\\\\\\\s\\\\\\\\S]+}\")

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

精彩评论

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