How to execute function automatically at specified time in java

后端 未结 2 2037
小蘑菇
小蘑菇 2021-01-26 17:57

I have got a requirement in which i need to execute a function at specified time set by the user.The function contains the code to generate a pdf file from database and save it

2条回答
  •  萌比男神i
    2021-01-26 18:36

    There is a good library called quartz that I can recommend. Its main purpose is starting jobs at a given time.

提交回复
热议问题