Environment construction
1. Clarify the technical structure
Second, the project environment: development environment and operating environment
2.1 Build a development environment
2.1.1 Configure JDK
Install the corresponding version of the JDK according to the project requirements, be careful not to have Chinese or special symbols such as spaces in the installation path.
2.1.2 Configure environment variables
Create new variable name: JAVA_HOME
Create a new system variable, the variable value is the JDK installation directory
Add %JAVA_HOME%\bin at the top of the path environment variable ;
2.1.3 Configure maven
Configure
MAVEN_HOME , the variable value is the path of your maven installation (the one-level directory before the bin directory)
Add % MAVEN_HOME %/bin to the environment variable path
Verify that the maven configuration is successful
Find conf\setting.xml in the maven installation path and add your own warehouse address
Configure maven in eclipse
1. Add maven
Click add to enter
- Configure repository location in eclipse
3. Build the index
4. Refactor the index
5. Adjust the jdk environment in maven
2.1.4 Configure tomcat
Add local tomcat to eclipse and configure related parameters