码上敲享录 > maven开发经验分享 > Element 'dependency' cannot have character [children], because the type's content type is element-on

Element 'dependency' cannot have character [children], because the type's content type is element-on

上一章章节目录下一章 2022-02-11已有817人阅读 评论(0)

Element 'dependency' cannot have character [children], because the type's content type is element-only


解决方法:

idea的maven  pom.xml添加的依赖可以引入但有红色波浪线,原来是网上复制的dependency中子标签前面有看不到的空格,删除空格即可。

<dependency>

               <groupId>com.google.code.gson</groupId>

               <artifactId>gson</artifactId>

               <version>2.8.5</version>

</dependency>


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交