springboot的pom.xml添加依赖时报错

 

<!--<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>-->
添加这个依赖时,从网上复制了这一段

报错:element 'dependency' cannot have character [children], because the type's co

解决:把复制的依赖删掉,手动打一遍,就能够了。(多是从网上复制的文本内容带有一些其余的格式)

转载于:https://www.cnblogs.com/Girlir/p/7892808.htmlhtml