Share:- Whatsapp Facebook Facebook

------------------------------------- Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

What is the difference between RequestMapping and GetMapping ?

0 votes
14 views
What is the difference between RequestMapping and GetMapping ?
asked Feb 8 in Spring Boot by GAURAV GOYAL

1 Answer

0 votes
There are following difference between RequestMapping and GetMapping:-

* RequestMapping is a generic request handler where we can use with GET, POST, PUT or any  other request methods using in method attribute.
* GetMapping is a specific for GET request method. It is just an extension of RequestMapping to improve clarity.
answered Feb 8 by me_vinod12 (2,480 points)
...