您的位置:首页 > 编程语言 > Java开发

SSH框架中报错org.springframework.beans.factory.BeanCreationException或者NotWritablePropertyException

2016-01-12 08:50 471 查看
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方法。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ssh 框架