如图,使用Idea配置Pom.xml为啥没有自动下载这些..
没有父依赖,在第6行加入如下代码:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.2</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
再点击:
在maven的setting.xml配置阿里云的镜像地址再试试,可以参考https://developer.aliyun.com/article/697987?spm=a2c6h.14164896.0.0.23563adecNTON6