How to run a Java program under cron and import the jars

后端 未结 3 1088
我寻月下人不归
我寻月下人不归 2021-01-06 17:20

My source file is .../MyDir/proj/myProj.java. The jar files are under .../MyDir/proj/library. The jar files are from HTMLUnit 2.10.

This is

3条回答
  •  离开以前
    2021-01-06 18:06

    For Spring Boot Java users, you can use @scheduled annotation. For more details and a great example, visit this

提交回复
热议问题