问答详情
源自:-

eclipse启动服务时报错求解????????


org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'empService1' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'empDao1' while setting bean property 'empDao1'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'empDao1' 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 16:25

个回答

  • 东方骏起
    2016-08-22 16:48:06

    在代码中检查一下你的setter方法设置了没