1

我想在不使用 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>.
4

1 回答 1

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

这对我有用。直到春天的人改变链接

于 2013-10-24T06:38:22.097 回答