Skip to content

Instantly share code, notes, and snippets.

@CheolhoJeon
Created April 28, 2020 06:27
Show Gist options
  • Save CheolhoJeon/078ed28194c4d4585135d3ff53892de0 to your computer and use it in GitHub Desktop.
Save CheolhoJeon/078ed28194c4d4585135d3ff53892de0 to your computer and use it in GitHub Desktop.
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
context.getEnvironment().setActiveProfiles("dev");
context.register(MemberConfig.class, DsDevConfig.class, DsRealConfig.class);
context.refresh();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment