错误信息 Element ‘dependency’ cannot have character [children], because the type’s content type is element-only. 解决方法 因从网上复制maven坐标,会带一些特殊空格,导致maven中坐标解析异常,去除坐标前的空格即可. 错误图片 正确图片