1
我配置春豆使用參考「自動檢測」在Spring上下文
<context:component-scan base-package="com.mycomp.app" />
<tx:annotation-driven />.
@Repository("transactionDao")
public class TransactionDao {
...
}
現在我手動配置在上下文中的另一個Bean上引用此一個自動檢測一些DAOS。
<property name="schedulerContextAsMap">
<map>
<entry key="transactionDao" value-ref="transactionDao" />
</map>
</property>
現在Spring的抱怨:
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionDao' is defined
是否有可能引用自動檢測上下文中豆?