警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'bookShopBiz': Unsatisfied dependency expressed through field 'bookShopDAO'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'bookShopDAO': Unsatisfied dependency expressed through field 'jdbcTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdbcTemplate' defined in com.yc.tx.MyConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.jdbc.core.JdbcTemplate]: Factory method 'jdbcTemplate' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in com.yc.tx.MyConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.StackOverflowError



uj5u.com熱心網友回復:
dataSource回傳值寫成了datasource()無限遞回uj5u.com熱心網友回復:
找到了,多謝轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/26045.html
標籤:Java EE
上一篇:最新Eclipse的問題
下一篇:大神求解
