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:来自类路径资源 [spring/applicationContext-service-webapp.xml] 的 XML 文档中的第 2 行无效;嵌套异常是 org.xml.sax.SAXParseException:与元素类型“http-equiv”关联的属性“{1}”需要打开引号。

知道为什么吗?

4

1 回答 1

1

似乎正在加载所包含架构之一的某些不同版本,或者根本无法访问/加载该架构。


更新 排除 pom 文件中的重复工件将解决问题。

于 2012-11-17T13:00:46.320 回答