问题描述:
'parent.relativePath' of POM com.neo:spring-boot-web:1.0.01-SNAPSHOT
(D:\IdeaSpace\spring-boot-examples\spring-boot-web\pom.xml) points at com.example:spring-boot-examples
instead of org.springframework.boot:spring-boot-starter-parent, please verify your project structure


解决办法:
错误分析
- 子模块的parent写的不是父模块,而是继承了springboot

解决方法
在该<parent>标签中加上<relativePath />

本文介绍了一个关于Maven项目中POM文件配置错误的问题及解决方案。主要错误在于子模块的parent指向不正确,应指向父模块而非springboot。文章提供了具体的解决步骤。
1890

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



