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
@Configuration | |
public class ConfigurationManager | |
{ | |
@Bean | |
@Profile("dev") | |
public AppConfiguration getDevelopmentConfiguration() | |
{ | |
return new AppConfiguration("development_config"); | |
} | |
@Bean | |
@Profile("staging") | |
public AppConfiguration getStagingConfiguration() | |
{ | |
return new AppConfiguration("staging_config"); | |
} | |
@Bean | |
@Profile("prod") | |
public AppConfiguration getProductionConfiguration() | |
{ | |
return new AppConfiguration("production_config"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment