Exception handling for Spring 3.2 “@Scheduled” annotation

后端 未结 3 1733
野性不改
野性不改 2020-12-17 14:19

How to customize the exception handling for @Scheduled annotation from spring ?

I have Cron jobs which will be triggered in the server (Tomcat 6) and when any except

3条回答
  •  清酒与你
    2020-12-17 14:58

    You could implement and register an ErrorHandler for the ThreadPoolTaskScheduler that is used for your scheduling annotations.

     
    
     
            
            
     
    
     
    

提交回复
热议问题