有没有办法在Spring的@Scheduled cron配置中从propertyClass调用getter(甚至变量)?以下内容无法编译:
@Scheduled(cron = propertyClass.getCronProperty()) 要么 @Scheduled(cron = variable)
我想避免直接抓住房产:
@Scheduled(cron = "${cron.scheduling}")
Run Code Online (Sandbox Code Playgroud)