Why does scheduled method in spring boot application gets executed before ApplicationReadyEvent gets published?

后端 未结 0 893
感情败类
感情败类 2020-12-18 04:46

Why the code inside the print method below gets executed before listen method? Shouldn\'t the scheduled method start job after the applicationcontext starts?

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题