類似下列問題:BeanCreationException很可能是applicationContext.xml配置錯誤或相關的類文件,hbm.xml文件錯誤,要仔細查詢問題。
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
信息: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1e7d8b1: defining beans [c,dao,sf,ds]; root of factory hierarchy
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao' defined in class path resource [applicationContext.xml]