【问题标题】:The prefix "xmnls" for attribute "xmnls:mvc" associated with an element type "beans" is not bound与元素类型“beans”关联的属性“xmnls:mvc”的前缀“xmnls”未绑定
【发布时间】:2016-11-01 05:00:29
【问题描述】:

错误 * 与元素类型“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>

【问题讨论】:

    标签: xml spring-mvc


    【解决方案1】:

    改变

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

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

    【讨论】:

      猜你喜欢
      • 2016-10-12
      • 2020-04-05
      • 2015-06-14
      • 1970-01-01
      • 2015-03-05
      • 2018-09-12
      • 1970-01-01
      • 1970-01-01
      • 2011-05-15
      相关资源
      最近更新 更多