Why does Spring 4 only allow one TaskScheduler in a context?

后端 未结 3 1103
青春惊慌失措
青春惊慌失措 2021-02-04 08:41

We have a Spring web application we\'re porting from Spring 3.2 to Spring 4. Our application has several sub-contexts assembled into a single runtime context when the web appli

3条回答
  •  感情败类
    2021-02-04 09:10

    You need to explicitly specify which scheduler to use with @Scheduled annotations. Just add scheduler attribute:

    
    
    

提交回复
热议问题