spring 加載流程走向

spring提供了一個ContextLoaderListener類 它會在web啓動時加載而後去WEB-INF下尋找applicationContext.xml文件 並根據它來建立spring容器。 一個項目中若是須要使用spring 還須要在web。xml中以下配置: <listener> <listener-class> org.springframework.web.context. Con
相關文章
相關標籤/搜索