Java – when to use doget, dopost, and service

See English answers > doget and dopost in servlets5

>Dopost has no limit on the number of parameters, while doget has. > Doget is faster than dopost. > Dopost is more secure than doget

My problem is that these methods take the same parameters and complete our implementation process So what are the main differences between these methods and the specific situation each method is used to deal with

Solution

The technical difference you mentioned is the part where we talk about rest variants

In addition to post and get, there are put and delete You should use get for operations that do not change data, post for creation, and put for updating data Deleting is obviously deleting data

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>