Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
297 views
in Technique[技术] by (71.8m points)

spring boot - How to create Schedular on SpringBoot which invoke method

I have a table called JobSchedular

JobSchedular

JobCode JobName JobDescription FunctionName Status RunInterval(CronEcpression)
Job001 Notify To Send Notification SendNotification ACTIVE 0 * * * * ?
Job002 Appointment To manage appointment ManageAppointment ACTIVE 0 * * * * ?
question from:https://stackoverflow.com/questions/65832033/how-to-create-schedular-on-springboot-which-invoke-method

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Now spring boot has built in support to quartz. Use this example to schedule job. https://www.callicoder.com/spring-boot-quartz-scheduler-email-scheduling-example/


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...