applicationContext.xml xxx-servlet.xml

applicationContext.xml是随ContextLoaderListener的加载而执行的,而xxx-servlet.xml是随DispatcherServlet的加载而执行的,在web.xml中,加载顺序是listener>filter>servlet,所以applicationContext.xml先加载!

posted @ 2015-12-14 13:21  Struts-pring  阅读(141)  评论(0编辑  收藏  举报