I know I can inject the value from properties file with the following syntax:
@Scheduled(fixedRate=${myRate}) public void getSchedule(){ System.out.print
I find it easy once done for my project. Change fixedRate to fixedRateString and put the property key in double quotes like this:
fixedRate
fixedRateString
double quotes
@Scheduled(fixedRateString="${myRate}") public void getSchedule() { System.out.println("Scheduled job"); }