Idea new springboot Maven project

Time:2020-11-25

Install JDK

Installing JDK on MAC

Maven configuration

to configure settings.xml Download source:

<! -- alicloud warehouse -- >
<mirror>
    <id>alimaven</id>
    <mirrorOf>central</mirrorOf>
    <name>aliyun maven</name>
    <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>

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

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

Create project

Simple project

Click Next directly to go to the next step without checkingCreate from archetypeOptions.

Idea new springboot Maven project

Name: project name.
Location: Project storage path.
GroupId: project group, usually the reverse writing of company domain name.
ArtifactId: unique ID within the project group, used as the project name.
Version: version number.

Idea new springboot Maven project

The structure of the generated project is as follows:

Idea new springboot Maven project