我在Eclipse中Maven的Spring項目,我在我的春天上下文的一有這個惱人的錯誤信息:錯誤在Spring應用程序上下文模式
引用的文件包含錯誤(JAR:文件:/ M2_HOME/repository/org/springframework/spring-beans/3.1.2.RELEASE/spring-beans-3.1.2.RELEASE.jar!/ org/springframework/beans/ factory/xml/spring-tool-3.1.xsd)。欲瞭解更多信息,請右鍵單擊在問題視圖的消息,並選擇「顯示詳細信息...」
展會setails導致了這一點:
我用彈簧DATA- jpa 1.2.0.RELEASE和我的其他彈簧罐都是3.1.3.RELEASE。關於spring-data-commons-core - 我甚至沒有依賴這個jar在我的pom中,但是我可以在m2版本庫中看到它,以及spring-data-commons-parent和版本1.4.0.RELEASE ,我不知道爲什麼(也許這些是spring-data-jpa的一部分?)。
我的應用程序上下文模式:
<?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:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:jpa="http://www.springframework.org/schema/data/jpa"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.2.xsd">
我不明白爲什麼我不斷收到此錯誤。基本上,它沒有任何效果什麼那麼,該應用程序編譯,部署和運行良好,它只是在Eclipse這個惱人的紅色錯誤標記驅動我瘋了:)
老兄的作品就像一個魅力,也爲mongodb! (有幾個技巧)。我將其添加爲單獨的答案,謝謝! – tugcem
很高興聽到這個:) – forhas