spring mvc web.xml 配置出现 Attribute "xmlns:xsi" must be declared for element type "web-app"
2015-05-12 10:15
931 查看
<span style="font-size:18px;">Multiple annotations found at this line: - Attribute "xmlns:xsi" must be declared for element type "web-app". - Attribute "xsi:schemaLocation" must be declared for element type "web-app". - The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter- mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security- constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". - Attribute "version" must be declared for element type "web-app". - Attribute "xmlns" must be declared for element type "web-app".</span>这种错误就是需要webapp这个标签必须是第一行的,前面有注释文档都不可以,所以将webapp这个标签前面的文档全部删掉就可以了
相关文章推荐
- [报错]Attribute "xmlns:xsi" must be declared for element type "web-app"
- web.xml中的web-app中出现Attribute "xsi:schemaLocation" must be declared for element type "web-app".
- Attribute "scope" must be declared for element type "bean"-[spring]
- ERROR [ValidatorFileParser] Attribute "short-circuit" must be declared forelement type "field-validator".
- 【hibernate】Attribute "column" must be declared for element type "property"解决办法
- Attribute "scope" must be declared for element type "bean"
- Attribute "scope" must be declared for element type "bean"
- Attribute "scope" must be declared for element type "bean"
- Attribute "column" must be declared for element type "property"解决办法
- Attribute "resultCalss" must be declared for element type "select".
- org.xml.sax.SAXParseException: Attribute "colum" must be declared for element type "result".
- FAQ(4):Attribute "resource" must be declared for element type "mapper".
- Attribute "resultType" must be declared for element type "insert".
- Attribute "statementType" must be declared for element type "procedure"
- 【hibernate】Attribute "column" must be declared for element type "property"解决办法
- Attribute "column" must be declared for element type "property"解决办法
- Attribute "column" must be declared for element type "property"解决办法
- 出现错误 Element type "LinearLayout" must be followed by either attribute specification,">"or"/>"的解决办法
- Attribute "resultType" must be declared for element type "insert"或"update"
- Attribute "resultClass" must be declared for element type "insert".