2
我有我的春節,配置如下:錯誤在Spring配置文件時沒有連接到互聯網
<?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:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-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/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd">
當服務器連接到互聯網,這工作得很好。然而,如果訪問被撤銷,下面的錯誤發生:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:2號線XML文檔中的類路徑資源[春/的applicationContext-服務webapp.xml ] 是無效的;嵌套異常是org.xml.sax.SAXParseException:對於與元素類型「http-equiv」關聯的屬性「{1}」,預期打開引號。
任何想法爲什麼?
我檢查了我的'Maven Dependencies' jar文件,結果發現有兩個版本的'spring-aop'。 '2.5.6'和'3.1.0'都可用。我目前需要的(我添加到'pom.xml')是'3.1.0'。另一個版本因爲一些'jersey' jar文件而被加載。這是(有2個不同的版本)造成的問題? –
是的,沒錯。問題出現在「spring-aop 2.5.6」。我排除它並解決問題。現在,'spring-aop 3.1.0' jar文件正在本地加載。 –