FileSystemXmlApplicationContext:從文件系統(tǒng)或者url指定的xml配置文件創(chuàng)建,參數(shù)為配置文件名或文件名數(shù)組 ClassPathXmlApplicationContext:從classpath的xml配置文件創(chuàng)建,可以從jar包中讀取配置文件 WebApplicationContextUtils:從web應(yīng)用的根目錄讀取配置文件,需要先在web.xml中配置,可以配置監(jiān)聽器或者servlet來實(shí)現(xiàn) ...
www.dbjr.com.cn/article/1954...htm 2025-5-4