org.springframework.beans.factory.BeanCreationException
来源:互联网 发布:e盾网络验证 死马 编辑:程序博客网 时间:2024/04/30 07:52
严重: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userChoiService' defined in file [C:/tomcat6.0/webapps/Reservationsystem2/WEB-INF/classes/applicationContext-beans.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: sessionFactory or hibernateTemplate is required Caused by: java.lang.IllegalArgumentException: sessionFactory or hibernateTemplate is required at org.springframework.orm.hibernate3.support.HibernateDaoSupport.checkDaoConfig(HibernateDaoSupport.java:112) at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062) 原因:在写userchoiserviceimpl时由于是复制Dao包下的文件,所以很粗心的把extends HibernateDaoSupport 也copy过去了修改方法:1去掉、extends HibernateDaoSupport 就可以了; 2、 在bean里加入(这个没试过)。
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException:
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException:
- org.springframework.beans.factory.BeanCreationException
- 简单工厂模式
- HTML accesskey 属性
- 小的crackme破解扫盲
- org.springframework.beans.factory.BeanDefinitionStoreException
- continue和break
- org.springframework.beans.factory.BeanCreationException
- C语言字符串函数详解
- Flash小玩意图案创作:增加太阳花图案
- 如何从URL取得其在Internet Cache中的文件名
- Cross Platform IDE for Android Native Development
- Android native development tool
- warning D4024 : unrecognized source file type
- 批处理FOR命令教程
- ofstream和ifstream详细用法