Skip to content

Instantly share code, notes, and snippets.

@zxx
Created February 17, 2020 18:24
Show Gist options
  • Save zxx/e98bf8f7b9a08b4d005233dbcfd80048 to your computer and use it in GitHub Desktop.
Save zxx/e98bf8f7b9a08b4d005233dbcfd80048 to your computer and use it in GitHub Desktop.
# 1
mvn spring-boot:run
# 2
mvn install
java -jar target/xxx.jar
@zxx
Copy link
Author

zxx commented Feb 17, 2020

指定 test 环境,会只用 application-test.yml

java -jar xxx.jar --spring.profiles.active=test

@zxx
Copy link
Author

zxx commented Feb 17, 2020

java -jar xxx.jar --server.port=8888

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment