java - How to use ".." to pass URL parameters into Jersey? -


I had to render this URL a restless query:

Where There are 100 .300 parameters that say: "100 to 300" (indexed) I can change those parameters as if I want to.

I have to pass this type of query parameter to my web service as well, how can I comment on it in the jersey API, and how do I get the parameter value?

You can, for example, the code below works fine for me. @ProfileService {@GET @ path ("/ 100..200") @ Product (MediaType) @payment ("/ test")

) @Component public class testRestfulService {@GET @ path ("/ 100..200") @ APILICATION_JSON) Public String Mill Text () {Return "Success"; }}

Using the code above, you can use the method by localhost: 8080 / test / 100..200.

Hope this solves the problem!


Comments