报错原因:
在Springboot项目启动时,项目报错‘parent.relativePath’ of POM问题,项目无法正常启动。parent里写的并不是上一级,而是继承了springboot。
解决方案:
在pom文件中spring-boot-starter-parent依赖中添加 <relativePath/>属性
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.12.RELEASE</version>
<relativePath/> ##添加relativePath
</parent>