Learn spring from the beginning, found that the brain is not enough, to record the problems encountered in learning, to facilitate future study review.
1.IOC (inversion of control), problems encountered in set injection
In the configuration file <property name= "Dao1" ref= "Empdao" ></property> name written out of DAO will be reported incorrectly and must be written in DAO.
Exception in thread "main" Org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Addempdao ' defined in class path resource [Applicationcontext.xml]: Error setting property values; Nested exception is the Org.springframework.beans.NotWritablePropertyException:Invalid property ' Dao1 ' of Bean class [DAO. Addempservice]: Bean property ' Dao1 ' was not writable or had an invalid setter method. Did you mean ' DAO '?
Spring Learning Summary