Created
July 27, 2018 01:01
-
-
Save kevinhooke/5dd81ea1412f485d8d2441219b72c604 to your computer and use it in GitHub Desktop.
Initialize a standalone Spring app with a @configuration bean AppConfig
This file contains hidden or 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
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