错误举例:cvc-complex-type.2.3: Element 'configuration' cannot have character [children], because the type's content type is element-only.
pom.xml文件出现错误。
可能从网上复制的代码格式有问题,有空格啥的,将出错的标签对之间的内容删除,然后自己手动敲,红叉基本上就没了。
如果还不行,sts右键项目选项validate,让程序重新加载xml文件,基本上就行了。