问答详情
源自:-

用eclipse做启动tomcat是报错,求老师或同学们解答,谢谢!!!!

我用eclipse做启动tomcat是报错啊:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'empService' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'empDao' while setting bean property 'empDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'empDao' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'sesstionFactory' while setting bean property 'sesstionFactory'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sesstionFactory' is defined

提问者:bocool 2016-08-21 15:17

个回答

  • botao555
    2016-08-27 22:41:36
    已采纳

    注意报错信息中的这句:Cannot resolve reference to bean 'sesstionFactory',意思是不能引用'sesstionFactory'这个bean,session这个单词拼错了,改过来就行了