My very basic spring application stopped working and I can\'t understand what\'s happened. pom.xml:
If you dont want to call ctx.refresh() explicitly, just initialize ApplicationContext like this: new AnnotationConfigApplicationContext(MyConfig.class), then configuration will be registered and refreshed implicitly
ctx.refresh()
new AnnotationConfigApplicationContext(MyConfig.class)