Error creating bean with name 'baseAction' defined in class path resource
2015-11-27 21:21
525 查看
如果spring中注入的属性与类中所有的属性不符会出现以下异常此时要检查所有的注入的属性个数
Error creating bean with name 'baseAction' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'userService' while setting bean property 'userService'; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'baseAction' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'userService' while setting bean property 'userService'; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'userService' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'userLoginDao' while setting bean property 'userLoginDao'; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'userLoginDao' defined in class path resource [applicationContext.xml]:
Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'sessionFactory' of bean class [com.neusoft.oa.dao.impl.UserLoginDaoImpl]: Bean property 'sessionFactory' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
相关文章推荐
- 一个jar包里的网站
- 一个jar包里的网站之文件上传
- 一个jar包里的网站之返回对媒体类型
- Ruby中的异常处理代码编写示例
- MySQL抛出Incorrect string value异常分析
- 详解JavaScript中的异常处理方法
- 模拟Spring的简单实现
- java程序中的延时加载异常及解决方案
- 解析Java异常的栈轨迹及其相关方法
- spring+html5实现安全传输随机数字密码键盘
- Spring中属性注入详解
- .NET(C#):Emit创建异常处理的方法
- struts2 spring整合fieldError问题
- windows7服务器上weblogic启动失败异常解决方法
- 有关ajax的error与后台的异常问题解决
- spring的jdbctemplate的crud的基类dao
- 深入探讨JAVA中的异常与错误处理
- 读取spring配置文件的方法(spring读取资源文件)
- GO语言异常处理机制panic和recover分析
- Spring Bean基本管理实例详解