eclipse
- import existing maven eclipse project
import -> Search maven -> Existing Mavan Projects -> select the project root directory
2. Start project in three ways
2.1 run as -> java application
2.2 running jar file
run as -> maven build -> Run the following commands
clean package -Dmaven.test.skip=true(打jar包)
Run command line: java -jar XXXXXXXX.jar (relative path or absolute path)
2.3 Running war file
Modify the pom.xml file packaging -> war
run as -> maven build -> Run the following commands
clean package -Dmaven.test.skip=true(打war包)
The war file in the tomcat's webapps directory
idea
open -> Project root directory (or project parent directory)
2. Start in three ways spring boot project
2.1 run as -> java application
2.2 running jar file
打 jar
mvn clean package -Dmaven.test.skip=true(打jar包)
Run command line: java -jar XXXXXXXX.jar (relative path or absolute path)
2.3 Running war file
Modify the pom.xml file packaging -> war
mvn clean package -Dmaven.test.skip=true(打war包)
The war file in the tomcat's webapps directory