Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@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