2 pkhnshdp pkhnshdp 于 2016.04.28 11:22 提问

dynamic web转成maven项目,mvc版本太高导致拦截器报错

原项目是可以运行,把mvc版本改成3.0也可以正常使用,是什么原因
图片说明
图片说明
图片说明
图片说明

2个回答

pkhnshdp
pkhnshdp   2016.04.28 11:26

补充:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 24 in XML document from ServletContext resource [/WEB-INF/yc-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd; lineNumber: 24; columnNumber: 20; cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition.

Caused by: org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd; lineNumber: 24; columnNumber: 20; cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition.

pkhnshdp
pkhnshdp   2016.05.04 18:17

自己解决,maven出现问题首先检查有没有jar包版本冲突~,换个jar包就OK了

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!