What is the default request method type for the request mapping?

By | December 24, 2017
Questions:

What is the default request method type for the @RequestMapping?

@RequestMapping(value = "addGoal")
public String addGoal(Model model) {...}
Answers:

If you do not specify any mapping this method will resolve all the http request i.e. you can send GET, POST, HEAD, OPTIONS, PUT, PATCH, DELETE, TRACE request to the specified url and it will be resolved.

Leave a Reply

Your email address will not be published. Required fields are marked *