最近配置项目的web.xml,发现其中有个节点报错,报错内容为
cvc-complex-type.2.4.a: Invalid content was found starting with element 'span'.
在网上查询好长时间,试了几个解决方案都不行,最后终于找到解决办法,解决办法为:
把头修改为<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
http://www.springmodules.org/schema/cache/springmodules-cache.xsd
http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
即可解决问题。