1.

What is the use of @RequestMapping?

Answer»
  • The annotation is used for mapping requests to specific handler classes or methods.
  • In spring, all the incoming WEB request routing is handled by Dispatcher SERVLET. When it GETS the request, it determines which controller is meant for processing the request by means of request handlers. The Dispatcher Servlet scans all the classes annotated with @Controller. The process of routing requests DEPENDS on @RequestMapping annotations that are declared inside the controller classes and their methods.


Discussion

No Comment Found