错误:“schemaLocation值***必须具有偶数个URI。”在spring调度程序的名称空间中

我得到了以下错误

 org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 55; SchemaLocation: schemaLocation value = 'http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/tx' must have even number of URI's. 

我的调度程序servlet具有以下命名空间

  

我通过以下方式取代了以上所有内容

  

我的错误消失了。
怎么会发生任何一个人说?

schemaLocation属性引用命名空间的XML Schema文档。

基本上当你输入:

 xmlns:expns="http://www.example.com" xsi:schemaLocation="http://www.example.com http://www.example.com/schema/example.xsd" 

您说: 我将使用 名称空间 http://www.example.com 的元素 的前缀 expns 。此外,您可以validation这些元素,获取 http://www.example.com 的XSD架构文件 http://www.example.com/schema/example.xsd http://www.example.com

换句话说,格式是:

 xsi:schemaLocation="namespace-a where_to_get_the_xsd_for_namespace-a namespace-b where_to_get_the_xsd_for_namespace-b namespace-c where_to_get_the_xsd_for_namespace-c" 

等等。

这就是为什么它必须是偶数

可在此处找到更多信息和示例。