2009-06-02 74 views
2

我想用Spring 1.5和Spring 1.5。我需要做的確切事情是編寫一個接口,這個接口將作爲擴展接口的類中的服務和實現公開。球衣與彈簧的融合

我無法在applicationContext.xml中執行它,可能是因爲XSD已更改。

有人可以提供一個示例代碼/代碼段/文件,他們已經能夠成功實現這一點。

由於事先 Adhir捱罵

回答

1

得到它終於..新的架構不支持基本的bean定義,因此接口和實現類可以使用舊技術

<bean id="myService" class="org.springframework.aop.framework.ProxyFactoryBean"> 
<property name="proxyInterfaces"> 
    <value>com.poc.service.MyServiceInterface</value> 
</property> 
<property name="target" ref="myServiceimpl" /> 

指定