org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name'se
来源:互联网 发布:java json修改map名字 编辑:程序博客网 时间:2024/06/15 04:31
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name'sessionFactory' defined in class path resource [applicationContext.xml]: Unsatisfied dependency expressed through bean property 'eventListeners': : Error creating bean with name 'hibernateTemplate' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateTemplate' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'sessionFactory': FactoryBean which is currently in creation returned null from getObject
以上错误出现原因,我在applicationContext.xml声明部分设置了default-autowire="byType"
解决办法: 去掉设置。让其默认
如图:去掉选中部分
- org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name
- org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name'se
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name '***'
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name
- org.springframework,beans.factory.BeanCreationException:error creating bean with name ***
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.mybatis.
- 解决org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.spring
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springfr
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springfr
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springfr
- 美容院成本核算原则
- myeclipse集成svn (多方式)
- JS 数据类型转换
- ubuntu 10.04 下 samba 服务的配置
- 编程之美 代码 P125 2.3寻找发帖水王
- org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name'se
- linux用户切换命令
- onStartCommand(Intent intent,int flags, int startId) 返回int值
- Visual Studio 2010——C#中的命名空间
- 条件变量实现信号量机制
- linux设备驱动归纳总结(七):2.内核定时器
- unity 在指定目录创建文件/读取文件/在文件内写入字符串
- VC\MFC 编程经验总结—3(转)
- 各种Hash函数冲突率分析