1. Build spring boot
1. Set up the environment
-
IDEA2023.1 development version
-
JDK17
-
Windows11
2.Building steps
(1) Click NEW Project
(2) Initialization step one
-
Spring Initializr
-
Name: self-named (if it’s not important, don’t change it)
-
Location: self-selected (don’t change it if it’s not important)
-
Language:Java
-
Type:Maven
-
Group: self-named (if it’s not important, don’t change it)
-
Artifact: Self-named (if it’s not important, you don’t need to change it)
-
Package name: self-named (if it’s not important, you don’t need to change it)
-
JDK:17 (I choose the 17 version of my local configuration)
-
Java: Choose the matching one yourself (I chose 17)
-
Packaging:Jar
-
Finally click next
(2) Initialization step two
- Spring Boot: Choose your own match (I chose 2.7.14, and after using 3.0.10, it often caused mismatches with other dependent versions)
- Check these three
-
Spring Boot DevTools
-
Lombok
-
Spring Web
- Finally click create and you are done
2. Configure Maven domestic sources
1. Configure the environment
- apache-maven-3.9.0
- Windows11
2. Configuration steps
(1) Step 1
- Open settings.xml in the conf under the apache-maven-3.9.0 file (drag and drop setting.xml to the notepad of window11 itself)
- Write the following code into mirrors
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
- Click Save to complete