IDEA新建springboot maven项目

安装JDK

mac 安装JDKsegmentfault

maven配置

配置settings.xml下载源:maven

<!-- 阿里云仓 -->
<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 选项。this

image.png

Name: 项目名称。
Location: 项目存储路径。
GroupId: 项目组,通常为公司域名的反写。
ArtifactId: 项目组内惟一的ID,用做项目名称。
Version: 版本号。阿里云

image.png

生成项目结构以下:url

image.png