Skip to content

Instantly share code, notes, and snippets.

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 tasdemirbahadir/5b9fa137380b2931cfcedd3bdbfae9e7 to your computer and use it in GitHub Desktop.
Save tasdemirbahadir/5b9fa137380b2931cfcedd3bdbfae9e7 to your computer and use it in GitHub Desktop.
Spring Boot Configuration Properties Sample
@ConfigurationProperties(prefix = "feature")
public class ConfigProperties {
private String firstFeatureVersion;
private String secondFeatureVersion;
// getters and setters
}
/*
application YAML (or properties) file
feature.first-feature-version
feature.second-feature-version
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment