如何在springMVC中解决此错误?
org.springframework.beans.factory.parsing.Bean定义ParsingException: 配置问题:找不到的Spring NamespaceHandler XML模式命名空间[如何在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/
简短回答:在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配置文件中使用正确的语法。