The @RequestMapping annotation is used to map a URL to either an entire class or a particular handler method.