Spring cron expression for every after 30 minutes

前端 未结 5 1634
南笙
南笙 2021-01-30 06:33

I have following Spring job to run after every 30 minutes. Please check my cron expression, is that correct?

\"0 0 0 * * 30\"


H

5条回答
  •  故里飘歌
    2021-01-30 07:01

    in web app java spring what worked for me

    cron="0 0/30 * * * ?"
    

    This will trigger on for example 10:00AM then 10:30AM etc...

    
    
    
        
            
                
            
    
            
            
    
            
    
            
            
                 
            
    
        
    
    
    

    I dont know why but this is working on my local develop and production, but other changes if i made i have to be careful because it may work local and on develop but not on production

提交回复
热议问题