在springmvc配置文件里面写默认的注解映射的支持的时候:<mvc:annotation-driven />The prefix "mvc" for element "mvc:annotation
来源:互联网 发布:淘宝客服打字要多快 编辑:程序博客网 时间:2024/05/17 08:01
在springmvc配置文件里面写默认的注解映射的支持的时候:<mvc:annotation-driven />The prefix "mvc" for element "mvc:annotation-driven" is not bound。
解决办法:
在该配置文件上面的beans中添加
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"
例:添加之前的代码:
<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"
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.xsd"
default-lazy-init="true">
添加之后的代码:
<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"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"
default-lazy-init="true">
- 在springmvc配置文件里面写默认的注解映射的支持的时候:<mvc:annotation-driven />The prefix "mvc" for element "mvc:annotation
- SpringMVC配置文件The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 报错的解决方法
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- springMVC- The prefix "mvc" for element "mvc:annotation-driven" is not bound 解决方法
- <mvc:annotation-driven />注解的理解
- <mvc:annotation-driven/>注解的作用
- SpringMVC-<mvc:annotation-driven>的作用
- The prefix mvc for element mvc:annotation-driven is notbound解决方法
- The prefix "mvc" for element "mvc:annotation-driven" is not bound
- <mvc:annotation-driven/>的作用
- mvc:annotation-driven的使用
- WideCharToMultiByte和MultiByteToWideChar函数的用法
- 源码寻找
- 学习整合hibernate springmvc spring的 心得(2)
- onvif 服务端设备发现在linux上运行不会报错,但是交叉编译运行在嵌入式开发板上是会报错
- 再说 Oracle RAC services
- 在springmvc配置文件里面写默认的注解映射的支持的时候:<mvc:annotation-driven />The prefix "mvc" for element "mvc:annotation
- 浏览器的工作原理:新式网络浏览器幕后揭秘
- 线性表的基本操作
- BootStrap学习笔记一
- java多元线性回归
- 工厂模式
- webdriver结合tesseract-ocr处理简单验证码
- servlet-4 状态码
- 网址收藏