This annotation is mainly used to specify a URI for a controller class. Previously, it was used by class methods to indicate the URI, http method, type of data sent, etc. In newer versions of Spring, it was replaced with @GetMapping, @PostMapping, etc. annotations. Now it is used only to indicate the URI to the controller class.