AnnotationConfigApplicationContext has not been refreshed yet - what's wrong?

前端 未结 3 1701
独厮守ぢ
独厮守ぢ 2021-01-07 19:15

My very basic spring application stopped working and I can\'t understand what\'s happened. pom.xml:


    

        
3条回答
  •  既然无缘
    2021-01-07 19:45

    You have to call ctx.refresh() before you can call ctx.getBean(HelloWorld.class);

提交回复
热议问题