Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/383.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java xml中的Spring mvc配置错误_Java_Xml_Spring_Maven_Spring Mvc - Fatal编程技术网

Java xml中的Spring mvc配置错误

Java xml中的Spring mvc配置错误,java,xml,spring,maven,spring-mvc,Java,Xml,Spring,Maven,Spring Mvc,我正在使用Spring3.2MVC框架创建一个应用程序。我正在使用Spring工具套件 还有马文。当我将JAR3.1更新为3.2时,servelet-context.xml和root-context.xml中出现以下错误:- cvc-elt.1: Cannot find the declaration of element 'beans:beans'. cvc-elt.1: Cannot find the declaration of element 'beans'. 尝试添加版本作为架构位置

我正在使用Spring3.2MVC框架创建一个应用程序。我正在使用Spring工具套件 还有马文。当我将JAR3.1更新为3.2时,servelet-context.xml和root-context.xml中出现以下错误:-

cvc-elt.1: Cannot find the declaration of element 'beans:beans'.
cvc-elt.1: Cannot find the declaration of element 'beans'.

尝试添加版本作为架构位置的后缀:

.../schema/mvc/spring-mvc-3.2.xsd
.../schema/beans/spring-beans-3.2.xsd

您需要检查spring模式的版本,并在定义模式后清理并再次安装maven项目。

change
这对我来说很有效…/schema/mvc/spring-mvc-3.2.xsd…/schema/beans/spring-beans-3.0.xsdNo它们都应该具有相同的版本。在你的例子中是3.2。我只是写了这两个例子,当然其他的都需要更新。3.2和3.0之间的区别是什么