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

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

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

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

猜你喜欢

转载自www.cnblogs.com/Zhusi/p/10398618.html
今日推荐