We've already discussed autowiring in depth--it gives us the facility to reduce configuration, and automatically discover which object to inject as the dependency in a bean. The following are the annotations that help in autowiring, and to sort out the problems that occur in autowiring:
Let's use the Ch02_Demo_Annotation project to demonstrate the preceding annotations.