web.xml中contextConfigLocation的作用

在web.xml中通過contextConfigLocation配置spring,contextConfigLocation參數定義了要裝入的 Spring 配置文件。   部署applicationContext.xml文件         如果不寫任何參數配置,默認的是在/WEB-INF/applicationContext.xml        如果指定了要加載的文件,則會去加載相應的xml
相關文章
相關標籤/搜索