I am trying to read cron expression from the property file for @Scheduled annotation
.
However, when I start the server, I get error like below
Encountered invalid @Scheduled method 'scheduleServicePrincipalOrchestorJob': For input string: "'0
Not Sure what is happening here.
My annotation looks like -
@Scheduled(cron= "${abc.cronExpression}", zone="America/Los_Angeles")
My application.properties looks like
abc.cronExpression="0 8 0 0 0 0"
Any leads on what is going wrong?