打包命令

  1. mvn clean package -Dmaven.test.skip=true

运行命令

  1. java -Dspring.profiles.active=staging -jar your-application.jar

打包运行

  1. # 命令解释:https://docs.spring.io/spring-boot/docs/current/maven-plugin/examples/run-profiles.html
  2. mvn clean spring-boot:run -Djava.security.egd=file:/dev/urandom -Dspring-boot.run.profiles=staging