jpa命名空间出错
xmlns:jpa="http://www.springframework.org/schema/data/jpa"
xsi:schemaLocation="http://www.springframework.org/schema/data/jpa
http://www.springframework.org/schema/data/jpa/spring-jpa-1.3.xsd"
在Spring中使用jpa命名空间,监测repository时,报错如下:
Referenced file contains errors (http://www.springframework.org/schema/tool/spring-tool.xsd). For more information, right click on the message in the Problems View and select "Show Details..."
或
Referenced file contains errors (http://www.springframework.org/schema/tool/spring-tool-1.3.xsd). For more information, right click on the message in the Problems View and select "Show Details..."
解决:将http://www.springframework.org/schema/data/jpa/spring-jpa-1.3.xsd或http://www.springframework.org/schema/data/jpa/spring-jpa.xsd改为http://www.springframework.org/schema/data/jpa/spring-jpa-1.1.xsd,xml文件右上角红X消除。