下载后可任意编辑spring 常见错误总结 在学习 spring 过程中遇见了种种不同的异常错误,这里做了一下总结,希望遇见类似错误的同学们共勉一下
错误一Error creating bean with name 'helloServiceImpl' defined in class path resource [spring-service
xml]: Error setting property values; nested exception is org
springframework
NotWritablePropertyException: Invalid property 'helloDao' of bean class [www
spring
service
HelloServiceImpl]: Bean property 'helloDao' is not writable or has an invalid setter method
Does the parameter type of the setter match the return type of the getter
Caused by: org
springframework
NotWritablePropertyException: Invalid property 'helloDao' of bean class这类错误是:一般都是创建了一个 dao 的 spring 文件比如 spring-dao 有创建了一个 service 的spring 文件,在 spring-service
xml 中引用 dao 的中定义的 id 名,导致的错误,疏忽是:写s