AnnotationConfigApplicationContext has not been refreshed yet – what’s wrong? December 14, 2023 by Tarik You have to call ctx.refresh() before you can call ctx.getBean(HelloWorld.class);