Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.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
如何在springMVC中解决此错误?_Spring_Spring Mvc - Fatal编程技术网

如何在springMVC中解决此错误?

如何在springMVC中解决此错误?,spring,spring-mvc,Spring,Spring Mvc,org.springframework.beans.factory.parsing.Bean定义ParsingException: 配置问题:找不到的Spring NamespaceHandler XML模式命名空间[ 简短回答:在SpringXML配置文件中使用正确的语法 下面是一个包含上下文模式的示例: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/

org.springframework.beans.factory.parsing.Bean定义ParsingException: 配置问题:找不到的Spring NamespaceHandler XML模式命名空间[


简短回答:在SpringXML配置文件中使用正确的语法

下面是一个包含上下文模式的示例:

<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:mvc="http://www.springframework.org/schema/mvc"
    xmlns:util="http://www.springframework.org/schema/util"
    xsi:schemaLocation="
http://www.springframework.org/schema/beans   http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/mvc     http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/util    http://www.springframework.org/schema/util/spring-util.xsd">

... config stuff

</beans>

…配置文件

可以粘贴xmlShort答案的标题部分:在SpringXML配置文件中使用正确的语法。