org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userKissflyService' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'userKissflyDAO' of bean class [com.guigu.store.service.UserKissflyService]: Bean property 'userKissflyDAO' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
其中一个很可能的原因是你忘记在Service中注入DAO了,所以快检查写Service中有没有提供DAO的set/get方法。