未绑定与元素类型关联的属性"xmnls:mvc" "beans"的前缀"xmnls"



错误*与元素类型"beans"相关联的属性"xmnls:mvc"的前缀"xmnls"没有被绑定。请帮帮我……提前谢谢。*

This is my Spring-Dispatcher-Servlet.xml
        <beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:context="http://www.springframework.org/schema/context"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmnls:mvc="http://www.springframework.org/schema/mvc"
            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-4.0.xsd">

           <context:component-scan base-package="com.gontu.Annotation.Helloexample"></context:component-scan>
           <mvc:annotation-driven/>
           <bean id = "viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
           <property name="prefix">
            <value>/WEB-INF/</value>
           </property>
              <property name="suffix">
            <value>.jsp</value>
           </property>
           </bean>
           </beans>

变化

       xmnls:mvc="http://www.springframework.org/schema/mvc"
         ^^

       xmlns:mvc="http://www.springframework.org/schema/mvc"
         ^^

最新更新