I am new to Restful webservice. When I was going through the tutorials, I saw that PUT method can be used to create the resource. the creation means adding into the database or somewhere by implementing our own effort? or will Jersey take care of creating the resource its own? Sorry for asking silly questions.. I did 开发者_如何转开发not get the way what PUT is doing..
Thanks Bhanu
Jersey won't do anything except you tell it to. A PUT request semantically should create or update a ressource, so if you plan to create some entity, thats the HTTP method to use. Use @PUT
to annotate your method and implement your functionality (as your tutorials tell you).
精彩评论