一:Could not find artifact org.springframework.boot:spring-boot-starter-parent:pom:3.2.3.RELEASE in aliyunmaven
在poc.xml加
♾️ java 代码:<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
二:Cannot resolve com.mysql:mysql-connector-j:unknown
在poc.xml加
♾️ java 代码:<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>8.0.31</version>
<scope>runtime</scope>
</dependency>
三:Error:(3, 29) java: 程序包org.junit.jupiter.api不存在
在poc.xml加
♾️ java 代码:<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.5.0</version>
<scope>test</scope>
</dependency>
四:java: 无法访问org.mybatis.spring.annotation.MapperScan错误的类文件: /E:/maven/repository/org/mybatis/mybatis-spring/3.0.1/mybatis-spring-3.0.1.jar!/org/mybatis/spring/annotation/MapperScan.class类文件具有错误的版本 61.0, 应为 52.0请删除该文件或确保该文件位于正确的类路径子目录中。
♾️ java 代码: <dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.2.2</version>
</dependency>
五:导入项目时没有识别到全部文件
导入项目时没有识别到全部文件
点击文件->项目结构->模块里面+你的目录->导入模块
成功: