It is possible to automatic resolve collaborators (other beans) for your bean by inspecting the contents of the BeanFactory. In Spring Framework this can be achieved by auto writing modes.

Five auto writing modes are shown below:

  • no
  • byName
  • byType
  • constructor
  • autodetect

Though This Feature significantly reduces the volume of configuration but a lot of care is needed to use this feature.