在從單一應用程序轉移到微服務時,在創建使用微服務春天開機(1.3.6)+ Hibernate的(5.2.1),我們得到了一個異常Spring引導(1.3.6)+ Hibernate(5.2.1)找不到符合條件的[org.hibernate.SessionFactory]類型的限定bean:
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.hibernate.SessionFactory] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}.
但相同的源代碼是在休眠(4.3.11)上運行。請找到
https://github.com/pandiaraj2/Spring-boot-1.3.6-Hibernate-5.2
什麼我需要做什麼來解決這個錯誤的源代碼?