
springBoot项目中project出现红色波浪线,查看报错信息显示:
Element ‘project’ cannot have character [children],because the type’s content type.
检查后发现,原来是打开pom.xml文件后不小心在上图红色框位置输入了一个0,把0删掉就好了。
本文介绍了一种常见的SpringBoot项目中pom.xml文件出现错误的情况,即在project元素中输入了非法字符导致XML解析失败。通过删除非法字符,可以快速解决问题。

springBoot项目中project出现红色波浪线,查看报错信息显示:
Element ‘project’ cannot have character [children],because the type’s content type.
检查后发现,原来是打开pom.xml文件后不小心在上图红色框位置输入了一个0,把0删掉就好了。

被折叠的 条评论
为什么被折叠?