我在我的spring.xml中定義了一個類似於下面的bean。我將所有的bean轉換爲基於註解的。我如何在下面列出的bean中注入屬性?使用spring註釋注入p命名空間屬性
<bean
id = "dataPropDao"
class = "com.service.ref.DataPropDaoImpl"
p:dataSource-ref = "data.dataSource"
p:sql = "PROFILE_PKG.GetProfileByCode"
p:function = "true"/>
從哪裏你打算搶sql屬性(字符串?)和功能特性(布爾字符串?)? – Mechkov
@Mechkov,謝謝你的迴應。這是一個現有的應用程序,我試圖找出它! –