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

前端 未结 3 1708
独厮守ぢ
独厮守ぢ 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 20:02

    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

提交回复
热议问题