Spring Boot初次构建pom.xml第一行报错且无实质性错误提示

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/qq_34868715/article/details/95333427

Spring Boot初次构建pom.xml第一行报错且无实质性错误提示

错误

<?xml version="1.0" encoding="UTF-8"?>这行提示错误,光标指到错误点并无提示

原因

Eclipse版本过低,不匹配Spring Boot

解决


<parent>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.1.6.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>
中version更换为1.5.4.RELEASE重新构建工作空间,Maven->update Project…->勾选Force Update of Snapeshots/Releases更新即可。

猜你喜欢

转载自blog.csdn.net/qq_34868715/article/details/95333427