I want to use java expression inside cron for scheduling in Spring Boot.
@Scheduled(cron = "${FileConfig.FileEnum.getScheduleTime()}" )
public void scheduleFetchFiles() {
...//method body
}
Is there a direct way to use pojo object or enum value in cron?