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

解決:把復制的依賴刪掉,手動打一遍,就可以了。(可能是從網上復制的文本內容帶有一些其他的格式)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM