創建Spring項目時出現以下錯誤
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [ApplicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [ApplicationContext.xml] cannot be opened because it does not exist
將ApplicationContext.xml文件放在啟動文件的同目錄或者放在src文件下,或者放在整個程序下,都無法解決。最后我將該文件 放入resources下就成功了。