BeanCreationException: Error creating bean with name 'loginService' defined in class path resource [logino/spring.xml]: Cannot resolve reference to bean 'loginDao' while setting bean property 'loginDao';
nested exception is org.springframework.beans.factory.
BeanCreationException: Error creating bean with name 'loginDao' defined in class path resource [logino/spring.xml]: Error setting property values;
nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'dataSource' of bean class [login.dao.LoginDaoImpl]: Bean property 'dataSource' is not writable or has an invalid setter method.
Does the parameter type of the setter match the return type of the getter?
答案:jar包有问题
本文分析了Spring框架中Bean创建失败的问题,详细解释了错误信息并指出问题原因在于jar包不兼容导致的数据源属性无法正确设置。
1万+

被折叠的 条评论
为什么被折叠?



