整合 idea + SpringBoot + MybatisPlus
环境 idea 2020.3 + SpringBoot 2.4.1 + MybatisPlus 3.4.1 + MySQL 5.6
- 【第一步】新建一个 SpringBoot 工程。
- 【第二步】将 Maven 更换为阿里云仓库。
<!-- 修改 maven 根目录下的 conf 文件夹中的 setting.xml 文件 -->
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
<!-- 配置pom.xml 文件 -->
<repositories>
<repository>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
- 【第三步】pom 文件导入依赖
<!-- MybatisPlus 依赖 -->
<dependency