maven pom.xml文件莫名其妙出现红叉。。。

错误举例: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文件,基本上就行了。

猜你喜欢

转载自blog.csdn.net/Dong__Ni/article/details/107016213
今日推荐