The @Component annotation marks a class as a Spring-managed bean.
The @Component annotation is used to indicate that a class is a Spring bean. This means the class will be automatically detected and registered by Spring’s component scanning mechanism. For instance, tagging the `InventoryService` class with @Component allows it to be managed by Spring, making it available for dependency injection throughout the application.