问题:
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'programmaticManager' defined in URL [file:src/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'iTestDao' of bean class [test.ProgrammaticManager]: Bean property 'iTestDao' is not writable or has an invalid setter method. Did you mean 'ITestDao'?
解决方法:
DAO变量名有问题,可能是定义的DAO变量名不符合Struts的什么规范吧。将ITestDao类型变量iTestDao,改成其他名字,就OK了。
[@more@]来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7282477/viewspace-1021483/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/7282477/viewspace-1021483/