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

来源:-

bocool

2016-08-21 16:25


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


写回答 关注

1回答

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

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

    bocool

    No bean named 'sesstionFactory' is defined 看出来了吗?我粗心造成的名字不对啊 是sessionFactory 而不是 sesstionFactory

    2016-08-25 23:52:08

    共 1 条回复 >

基于SSH实现员工管理系统之案例实现篇

SSH框架整合案例之实现篇,手把手带你实现员工管理系统

50212 学习 · 323 问题

查看课程

相似问题