System.setProperty("Property1", "abc"); System.setProperty("Property2","def"); //這樣就把第一個參數設置成為系統(tǒng)的全局變量!可以在項目的任何一個地方 通過System.getProperty("變量");來獲得, //System.setProperty 相當于一個靜態(tài)變量 ,存在內存里面! 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ...
www.dbjr.com.cn/article/2199...htm 2025-5-20