如報錯信息為:java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/springmvcFileload-servlet.xml]
首先,springmvc工程的web.xml中如有:www.twitterchina.net
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
則springmvc會去找applicationContext.xml配置文件,除非你用servlet另行指定。
其次,web.xml文件工程的servlet名稱如果和項目名不同,而且也未指定springmvc的配置文件,程序會根據servet名稱在WEB-INF下尋找對應的xml配置文件;同時嚴格區分大小寫。