Skip to content

Instantly share code, notes, and snippets.

@allenhuang
Created March 6, 2017 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allenhuang/d21374b3427d4c00898c572c3bafeb49 to your computer and use it in GitHub Desktop.
Save allenhuang/d21374b3427d4c00898c572c3bafeb49 to your computer and use it in GitHub Desktop.
Sample config file for Spring Boot executable jar
DEV_RANDOM='java.security.egd=file:/dev/./urandom'
DB_URL='spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/mydb'
SERVER_PORT='server.port=8888'
IPV4STACK='java.net.preferIPv4Stack=true'
IPV4ADDRESS='java.net.preferIPv4Addresses=true'
JAVA_OPTS="-D${IPV4STACK} -D${IPV4ADDRESS} -D${DEV_RANDOM} -D${DB_URL} -D${DEV_RANDOM}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment