Spring 可以這樣配置嗎?

laxxx3發表於2005-10-22



附件中是我的spring配置檔案中的一部分,,,userdao是介面iuserdao的實現類,
UserBusiness中的property是介面iuserdao,不知是否可以這樣配,,
但我執行時總要出錯,說不匹配...
報錯如下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userbusiness' defined in class path resource [appcontext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'iuserdao' of bean class [com.hyintro.register.business.UserBusiness]: Bean property 'iuserdao' is not writable or has an invalid setter method: Does the parameter type of the setter match the return type of the getter?

請各位師兄給小弟賜教...小弟先謝了...

laxxx334861437a5.txt

相關文章