參見spring中文幫助.chm文檔代碼參考whyspringofioc1.首先來個Bean1類
我們可以看到Bean1類中有很多各種各樣的屬性.相應的創建setter/getter2.然后相應配置xml: