开发者

PUT method in jersey

开发者 https://www.devze.com 2023-03-09 16:31 出处:网络
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 implementi

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消