acceptverbs httpverbs.get?
What is the use of it???? acceptverbs(httpverbs.get) and explain about the httpverbs.开发者_StackOverflowpost too..
thanks
When applied to an action, it restricts the action to only requests made with that particular HTTP verb, i.e., GET
or POST
. Even if a different type of request than specified comes in that would match based on the name and signature, it won't match because the request type is not allowed.
精彩评论