First review the composition of the URL:
scheme: [//[user:[email protected]]host[:p ort]][/]path [? Query][#fragment]
Jax-rs anotation
@PathParam:
In the URI of the request stitching in the URL such as: http://localhost:8080/books/1?price=20 if the URI BOOKS/1 1 is the category of the book, then 1 can be considered as @param
@QueryParam: @QueryParam is the request parameter after the question mark
@MatrixParam:
Format: Http://localhost:8080/books/1;price=20;year=2016;author=mike
In the first one; the back of the stomach @matrixparam
@HeaderParam
Parameters that are uploaded to the server through the header of the HTTP request
@CookieParam
The parameters stored in the cookie are received by @cookieparam
@FormParam
The @FormParm parameter is passed in the request body.
Introduction to some parameter annotations in Jax-rs (@PathParam, @QueryParam, @MatrixParam, @HeaderParam, @FormParam, @CookieParam)