java - For a @GET operation which one to use @QueryParam or @FormParam -


i developing server side application (not client). have list operation using @get , passing parameters @queryparam. should use @formparam? helpful while developing client?

the @formparam annotation expect parameter in body of request sent html form submit.

an http should not use request body. so, keep using @queryparam @get.

see also:


Comments

Popular posts from this blog

c# - how to use buttonedit in devexpress gridcontrol -

How do you convert a timestamp into a datetime in python with the correct timezone? -

how to display 2 form fields on same line with bootstrap -