csdn2
csdn3
csdn4
* * */
listlist=gs.getlists();
for(string str:list)
///*
* 注入set集合的方法
* 1)在要注入的類中定義要注入的集合 比如 sets 並生成其getter和setter方法
* 2)修改配置檔案,增加屬性
* **set**csdn1
**set**csdn2
**set**csdn3
**set**csdn4
* */
//測試注入set集合的方法
setsets=gs.getsets();
for(string str2:sets)
///*
* 測試注入map集合的步驟
* 1)在要注入的類中定義map物件型別的變數,比如:maps 並生成其getter和setter方法
* 2)配置配置檔案,增加乙個property屬性,同時增加map集合
* ###map###csdn1
###map###csdn2
###map###csdn3
###map###csdn4
* *
* */
//測試注入map集合的方法
mapmaps=gs.getmaps();
//得到所有的鍵值
setsts=maps.keyset();
//迴圈所有的鍵值
for(integer i:sts)
///* 1)在要注入的類中定義乙個properties型別的變數 比如:pops 並生成其getter和setter方法
* 2)配置檔案中修改一下,增加乙個配置,配置內容如下:
*
com.mysql.jdbc.driver
root
123* 3)注意要先將properties獲取到後,使用stringpropertynames()方法轉換為key值
* */
//獲得properties集合
properties pps=gs.getpops();
//獲得所有的屬性名稱集合
setset=pps.stringpropertynames();
//遍歷所有的set
for(string pkey:set)
原創位址]
Spring專案開發筆記系列(五)
spring專案開發筆記系列 五 hibernate持久化類的annotation方式配置 spring的這個專案中主要用的配置檔案就前面這麼幾個web.xml,spring config.xml和struts config.xml,其它的配置檔案比如log4j.properties,validat...
Android 開發筆記
版本控制的注意事項 以下資料夾不要加入版本控制 bin bin是編譯的二進位制檔案的存放路徑 gen gen是android需要的資源檔案的原始檔存放的目錄 使用svn的時候要注意專案編譯的問題 在編譯的時候程式會把src資料夾裡面的檔案拷貝到bin裡面,但是svn是每個資料夾裡面都包含乙個隱藏的....
ORACLE 開發筆記
oracle 日期 submitdate datetime.parse submitdate tostring d m月 yyyy to date 2002 01 02 yyyy m dd select count 1 from l perm where cancel y and sysdate p...