We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arijeet Saha opened SPR-14170 and commented
The below code doesnot work as cron is not able to read from spring bean.
@Bean String expression(){ return config.get(RUN_SANITY_CRON_EXPRESSION); }
@Bean
@Scheduled(cron = "#{expression}") public void work(){ LOGGER.debug("Executing --------------->"); }
@Scheduled
Does Spring @Scheduled support this?
Issue Links:
The text was updated successfully, but these errors were encountered:
Juergen Hoeller commented
This sounds like a duplicate of #18203.
Sorry, something went wrong.
jhoeller
No branches or pull requests
Arijeet Saha opened SPR-14170 and commented
The below code doesnot work as cron is not able to read from spring bean.
@Bean
String expression(){
return config.get(RUN_SANITY_CRON_EXPRESSION);
}
@Scheduled
(cron = "#{expression}")public void work(){
LOGGER.debug("Executing --------------->");
}
Does Spring
@Scheduled
support this?Issue Links:
@Scheduled
) ("duplicates")The text was updated successfully, but these errors were encountered: