Home »
MCQs »
Spring MCQs
Which of the following annotation is used to associate a URL with a whole class or a specific handler function?
47. Which of the following annotation is used to associate a URL with a whole class or a specific handler function?
- @RequestMapping
- @RequestMap
- @RequestMapper
- @Mapper
Answer: A) @RequestMapping
Explanation:
The @RequestMapping annotation is used to associate a URL with a whole class or a specific handler function.