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

相關文章
相關標籤/搜索