Created
November 6, 2019 05:39
-
-
Save imechemi/15a30677764e8101bf20e0bbd9813330 to your computer and use it in GitHub Desktop.
How to get ApplicationContext from Spring with Java config
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
public class Application { | |
public static void main(String[] args) { | |
ApplicationContext ctx = new AnnotationConfigApplicationContext(SOTelemetryDbConfig.class); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment