错误:在此行找到多个注释

时间:2014-02-18 06:52:44

标签: xml eclipse spring-mvc eclipse-juno

我不时地在eclipse(JUNO)上遇到以下问题。 这是错误:

Multiple annotations found at this line:
    - schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-3.2.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>.
    - cvc-elt.1: Cannot find the declaration of element 'beans'.

以下是我的XML代码片段:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd">

</beans>

请指导我在xml代码中找出问题,如果有的话,以及如何解决它。

感谢。

0 个答案:

没有答案