首先在主Application上加上 @EnableScheduling 注解 表明, 本app有定时任务.需要扫描定时任务的类.
This question already has an answer here: Make openGL lines connected (1 answer) 开发者_JAVA百科 Closed 9 years ago.