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
Post a Comment