Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/mvc].
谁能告诉为什么会发生这个错误?
这是我的配置。
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
最佳答案
@蒂乔
您需要检查几件事:
这些也是检查其他 NameSpaceHandler 错误所需的相同步骤,例如
Unable to locate Spring NamespaceHandler for XML schema namespace
http://www.springframework.org/schema/context
或者
Unable to locate Spring NamespaceHandler for XML schema namespace
[http://www.springframework.org/schema/security]
希望有帮助!
关于spring - 配置问题:Spring NamespaceHandler for [http://www. springframework.org/schema/mvc],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7254061/