码迷,mamicode.com
首页 > Web开发 > 详细

mvc:annotation-driven' must have no character or element问题

时间:2016-02-15 23:55:23      阅读:252      评论:0      收藏:0      [点我收藏+]

标签:

使用SpringMVC,启动tomcat报这个错误

解决办法

首先将Spring版本提升到3.1及以上

如果还不行替换xml文件头部:

[html] view plain copy
 
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <beans xmlns="http://www.springframework.org/schema/beans"  
  3.  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"  
  4.  xmlns:mvc="http://www.springframework.org/schema/mvc"  
  5.  xsi:schemaLocation="http://www.springframework.org/schema/beans  
  6.       http://www.springframework.org/schema/beans/spring-beans-3.2.xsd  
  7.       http://www.springframework.org/schema/context   
  8.       http://www.springframework.org/schema/context/spring-context-3.2.xsd  
  9.       http://www.springframework.org/schema/mvc  
  10.       http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd">  

mvc:annotation-driven' must have no character or element问题

标签:

原文地址:http://www.cnblogs.com/exmyth/p/5191534.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!