O'Reilly logo
  • Vijayanand Nadig Srinivasa Reddy thinks this is interesting:

In addition to auto-wiring, Spring uses its @Component annotation to create Spring-managed beans without the need for XML for registering. We can inject these beans to any component using the preceding three annotations.


Cover of Spring 5.0 Cookbook


@Component will help us to register a bean without need of XML configuration.