Xml 前缀为;xmnls";对于属性“;xmnls:mvc";与元素类型“关联”;豆子“;不受约束
错误*与元素类型“bean”关联的属性“xmnls:mvc”的前缀“xmnls”未绑定。 请帮帮我…先谢谢你。*Xml 前缀为;xmnls";对于属性“;xmnls:mvc";与元素类型“关联”;豆子“;不受约束,xml,spring-mvc,Xml,Spring Mvc,错误*与元素类型“bean”关联的属性“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"
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>
这是我的Spring-Dispatcher-Servlet.xml
/WEB-INF/
.jsp
更改
xmnls:mvc="http://www.springframework.org/schema/mvc"
^^
到
xmlns:mvc="http://www.springframework.org/schema/mvc"
^^