SpringMVC基礎

ApplicationContext獲取方式 在web項目中,可以使用ServeltContextListener監聽web應用的啓動,我們可以在web應用啓動時,就加載Spring的配置文件,創建應用上下文對象ApplicationContext,將其存儲到最大的域servletContext域中。 而spring提供了一個監聽器ContextLoadListener就是對上述功能的封裝。 快速
相關文章
相關標籤/搜索