【问题标题】:How to resolve this error in springMVC?如何解决 Spring MVC 中的此错误?
【发布时间】:2017-11-22 15:27:08
【问题描述】:

org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 配置问题:找不到 Spring NamespaceHandler for XML 模式命名空间 [http://www.springframework.org/schema/context]

【问题讨论】:

  • 可以粘贴你的xml的标题部分
  • 简答:在 spring XML 配置文件中使用正确的语法。

标签: spring spring-mvc


【解决方案1】:

简答:在 spring XML 配置文件中使用正确的语法。

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

<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>

【讨论】:

    猜你喜欢
    • 2020-08-09
    • 1970-01-01
    • 1970-01-01
    • 2017-10-06
    • 1970-01-01
    • 2015-04-26
    • 2017-12-12
    • 2012-02-14
    • 2015-04-12
    相关资源
    最近更新 更多