maven项目pom文件提示“Element 'dependency' cannot have character [children], because the type's content type is element-only.”错误,导致pom文件依赖引入异常,肉眼是看不到问题的,出问题的依赖如下图所示:
问题产生原因在拷贝依赖时引入了非打印字符,导致spring-cloud-starter-sleuth这也依赖引入失败,去除spring-cloud-starter-sleuth依赖后面的多余字符后恢复正常!