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.

From

Cover of Spring 5.0 Cookbook

Note

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