主要有以下幾種:
1. 在eclipse里創建web的maven項目時,如果pom.xml報錯,則是因為沒有src/main/webapp下沒有web.xml文件,在webapp下依次創建META-INF文件夾和WEB-INF文件夾,在WEB-INF里分別創建lib文件夾和web.xml文件。

2. 在eclipse里的spring的配置文件中如果出現以下出錯信息:
No grammar constraints (DTD or XML Schema) referenced in the document.
有可能時因為你的<?xml version="1.0" encoding="UTF-8" ?>語句沒有在第一行,或者前面有空格

3. 寫的spring配置文件中出現
schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/context/spring-context-3.1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
這類錯誤,主要意思是找不到對應的xsd文件,解決方法是把xsd的版本改為和你的spring的版本一樣就可以了。
