One, maven configuration
1. Installation:
Download: The official website or other resources can be used, the official website is very slow, you can download the required version here https://archive.apache.org/dist/maven/maven-3/
Decompression: After decompression, it is installed
Environment configuration: configure system environment variables, add maven storage path (maven bin path) in path path
Check whether the installation is successful: mvn -v
If you are prompted that mvn is not an internal command: https://jingyan.baidu.com/article/75ab0bcb232b9896864db2dc.html
2. Maven configuration
Open maven's conf\settings.xml file
Choose a local directory as the Maven local warehouse (the local warehouse is the storage path of the jar package downloaded from the central warehouse, the default is ${user.home}/.m2/repository, ${user.home} is generally the C drive)
Two, configure maven in idea
1. Binding maven
There is a built-in maven in the idea, you need to change it to the maven installed by yourself (you can also use the built-in maven)
Three, offline download of the jar package required by springboot
Since the company's intranet cannot connect to the external network, manually download all the jar packages required by springboot and place them in the local repository (ie, localRepository in maven's settings.xml, as shown in the following figure:
Link: https://pan.baidu.com/s/1SNVD430lah9X_U0di8gXZQ Password: 6m8g
Fourth, create a springboot project