Inject or manage dependencies in 3 ways

  1. XML configuration
  2. annotations
  3. Java configuration using @Configuration & @Bean annotations