+-
IDEA新建springboot maven项目

安装JDK

mac 安装JDK

maven配置

配置settings.xml下载源:

 <!-- 阿里云仓 -->
<mirror>
    <id>alimaven</id>
    <mirrorOf>central</mirrorOf>
    <name>aliyun maven</name>
    <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>

<!-- 中央仓库1
<mirror>
    <id>repo1</id>
    <mirrorOf>central</mirrorOf>
    <name>Human Readable Name for this Mirror.</name>
    <url>http://repo1.maven.org/maven2/</url>
</mirror>
-->

<!-- 中央仓库2
<mirror>
    <id>repo2</id>
    <mirrorOf>central</mirrorOf>
    <name>Human Readable Name for this Mirror.</name>
    <url>http://repo2.maven.org/maven2/</url>
</mirror>
-->

创建项目

简单项目

直接点击 next 进行下一步,不要勾选 Create from archetype 选项。

image.png

Name: 项目名称。
Location: 项目存储路径。
GroupId: 项目组,一般为公司域名的反写。
ArtifactId: 项目组内唯一的ID,用作项目名称。
Version: 版本号。

image.png

生成项目结构如下:

image.png