;嵌套异常是org.springframework.beans.factory.BeanCurrentlyInCreationException:错误创建名为“DB1SessionFactory”的bean") return sessionFactory.getCurrentSession")
private Se
: Error creating bean with name 'sessionFactory' defined in class path resource [iiitmk/projects/miniproject: Error creating bean with name 'sessionFactory' defined in class path resource [iiitmk/projects/miniproject: Error creating bean with
org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.hibernate.SessionFactorysessionFactory;
this.sessionFactory= sessionFactory;
// Failed to find a matching SessionFactory so make a new one.if (sessionFactory == null) Check.Require(File.Exists(sessionFactoryConfigPath)/*END_OF_MINE*/
// Now that we have our Configuration object, create a new
有人能帮我把SessionFactory调到Spring的Repository类吗?下面的代码给出了这个错误。任何解决这个问题的建议。’表示不满意的依赖关系:没有为dependency ...etc找到类型的合格bean”
@Repository public class AppointmentFactory { private SessionFac