Annotation Interface RequestMapping
Annotation used to indicate the mapping of a request to a specific controller class.
This annotation is applied at the class level to define the base path or URL pattern
for all handler methods within the controller.
Usage Example:
@RestController
@RequestMapping(path = "/example")
public class MyRestController implements BringServlet {
// Your implementation logic here
}
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
-
Optional Element Summary
Optional Elements
-
Element Details
-
path
String pathThe URL path or pattern for mapping HTTP requests to the annotated class. If not specified, the controller will respond to requests for the base path or URL pattern.- Returns:
- the URL path or pattern for requests to the annotated class
- Default:
""
-