Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinhooke/5dd81ea1412f485d8d2441219b72c604 to your computer and use it in GitHub Desktop.
Save kevinhooke/5dd81ea1412f485d8d2441219b72c604 to your computer and use it in GitHub Desktop.
Initialize a standalone Spring app with a @configuration bean AppConfig
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
ctx.register(AppConfig.class);
ctx.refresh();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment