我想在不使用Maven的情况下这样做 我在这一行得到了这个错误
error ------Multiple annotations found at this line:
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no
declaration can be found for element 'jpa:repositories'.
- schema_reference.4: Failed to read schema document 'http://
http://www.springframework.org/schem...spring-jpa.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>.
答案 0 :(得分:0)
问题出在http://www.springframework.org/schema/context/spring-context.xsd
,因为指向http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
。
更改xml文件
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
到
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
这项工作对我而言。直到春天改变链接的人