Skip to content

Instantly share code, notes, and snippets.

@iamvickyav
Created February 11, 2020 18:33
Show Gist options
  • Save iamvickyav/651447729a68270616fd6944730a0371 to your computer and use it in GitHub Desktop.
Save iamvickyav/651447729a68270616fd6944730a0371 to your computer and use it in GitHub Desktop.

application-.properties

Environment variable -> spring.profiles.active

application.properties is always loaded, irrespective of the spring.profiles.active value. If there is the same key-value present both in application.properties and application-.properties, the latter will override the former.

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