码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2019-02-19 00:40:34      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:页面   通过   创建   spring   现在   上下文   tor   and   路径   

如果之前所有测试都通过,并且保证测试sessionFactory可以创建成果,运行项目访问页面后报如下错

问题基本可能出现在web.xml的spring上下文加载的路径问题上。

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

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

标签:页面   通过   创建   spring   现在   上下文   tor   and   路径   

原文地址:https://www.cnblogs.com/Zhusi/p/10398618.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!