How to schedule a cron job in spring boot without using @Scheduled() annotation
问题 In spring boot, can I schedule a spring job by not using @Scheduled annotation to a method? I am working with spring job in the spring boot. I want to schedule a job by using cron expression, but without using @Scheduled(cron = " ") annotation to the method. I know that I can schedule a job inside this method as below. @Scheduled (cron = "0 10 10 10 * ?") public void execute() { / * some job code * / } But I want it to be dynamic so that I can take a cron expression as input from the user and