Wiring annotations

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.19.56.45