Introduction
@RequestMapping for base paths helps organize your web app by grouping related URLs under one main path. It makes your code cleaner and easier to manage.
You want all URLs in a controller to start with the same base path, like '/users' for user-related actions.
You want to avoid repeating the same path prefix on every method in a controller.
You want to clearly separate different parts of your app by URL structure.
You want to handle all requests under a common path in one place.