org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sessionFactory' is defined

请检查你在web.xml中加载spring.xml文件的时候没有加载成功,看你的路径是否正确

<context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>/WEB-INF/spring.xml</param-value>
 </context-param>

posted @ 2014-01-12 21:40  努力挣扎的小兵  阅读(481)  评论(0编辑  收藏  举报