Spring容器的兩種方式詳解

一、Spring容器初始化兩種方式spring (1)ApplicationContext(子類)spa        //默認加載文件系統的配置文件,主要配置文件放在項目下、本地上、類路徑下(3種位置)調試        ApplicationContext ac=new FileSystemXmlApplicationContext("classpath:beans.xml");xml    
相關文章
相關標籤/搜索