spring在web.xml中的配置

在實際項目中spring的配置文件applicationcontext.xml是經過spring提供的加載機制,自動加載的容器中去,在web項目中,配置文件加載到web容器中進行解析,目前,spring提供了兩種加載器,以供web容器的加載:一種是ContextLoaderListener,另外一種是ContextLoaderServlet。這兩種在功能上徹底相同,只是一種是基於Servlet2.
相關文章
相關標籤/搜索