cvc-complex-type.2.4.c: 'JPA:存储库'.'http:// www.springframework.org/schema/data/jpa/spring-jpa.xsd



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

问题在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

这个适合我。直到大家从春季更改链接

最新更新