In my class I have an @Autowired
bean which holds a cron expression in one of it's attributes.
In the same class I have a @Scheduled
method, and I wish to set the cron expression to the bean's property.
I tried this already and it doesn't work
@Scheduled(cron = "#{propertyBean.cronExpression}")
Any ideas?
Thank you.