子模块的parent指向的不是父模块,而是springboot
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.1.RELEASE</version>
</parent>
解决方法
在该<parent>标签中加上<relativePath />
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.1.RELEASE</version>
<relativePath />
</parent>
本文探讨了Spring Boot项目中子模块parent标签配置错误,即parent指向非预期父模块的问题。通过添加<relativePath/>标签解决了这个问题。了解如何确保parent标签正确引用spring-boot-starter-parent版本2.1.1.RELEASE。
193

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



