原博文補充: web.xml配置中ContextLoaderListener和DispatcherServlet的區別: - ContextLoaderListener是在我們的web容器啓動的時候啓

web.xml配置中ContextLoaderListener和DispatcherServlet的區別: - ContextLoaderListener是在我們的web容器啓動的時候啓動的,默認會加載/WEB-INF/下面的applicationContext.xml文件。並創建一個WebApplicationContext容器。 - DispatcherServlet是在我們第一次訪問我們的應
相關文章
相關標籤/搜索