1. 程式人生 > >springmvc-servlet.xml,applicationContext.xml 哪個先被執行?

springmvc-servlet.xml,applicationContext.xml 哪個先被執行?

https://blog.csdn.net/lurao/article/details/50818234

1、applicationContext.xml是隨ContextLoaderListener的載入而執行的,而xxx-servlet.xml是隨DispatcherServlet的載入而執行的,在web.xml中;

2、載入順序是listener>filter>servlet;

3、applicationContext.xml先載入!