---
title: "Non-whitespace characters are not allowed in schema elements"
author: "layznet"
date: "2016-05-10T11:40:17Z"
tags: []
categories: ["开源软件"]
slug: "non-whitespace-characters-are-not-allowed-in-schema-elements"
draft: false
lastmod: "2016-05-10T11:39:45Z"
id: 2297125
url: "https://layznet.iteye.com/blog/2297125"
---

**问题：**

> 
> 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版本的间接依赖