Non-whitespace characters are not allowed in schema elements

问题:
引用

Caused by: org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/aop/spring-aop-4.1.xsd; lineNumber: 1; columnNumber: 134; s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'Your browse does not support frame!'.

原因:
pom.xml配置了对spring 4.1.4.RELEASE的直接依赖,而又间接依赖了spring 3.2.9.RELEASE的,导致解析后的依赖中既有spring 4.1.4的,又有3.2.9的。
解决方法:
通过exclusions排除对3.2.9版本的间接依赖

猜你喜欢

转载自layznet.iteye.com/blog/2297125