错误
<?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更新即可。

博客指出Eclipse版本过低与Spring Boot不匹配产生错误,解决办法是将Spring Boot父依赖的版本从2.1.6.RELEASE更换为1.5.4.RELEASE,重新构建工作空间,通过Maven更新项目并勾选强制更新快照/版本即可。
1666

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



