FileSystemXmlApplicationContext(String configLocation)
引數說明:public static void main(String[] args){ FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext("d:appContext.xml"); //載入組態檔 }
FileSystemXmlApplicationContext(String[]configLocations)
引數說明:public static void main(String[] args){ String[] locations = {"appContext.xml","daoConfig.xml","viewConfig"}; //定義儲存組態檔的字串陣列 FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext(locations); //載入組態檔 }