Created
April 21, 2020 15:12
-
-
Save tasdemirbahadir/5b9fa137380b2931cfcedd3bdbfae9e7 to your computer and use it in GitHub Desktop.
Spring Boot Configuration Properties Sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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