samedi 28 février 2015

How to enable @Scheduled jobs by profile in spring?

How could I enabled scheduled jobs only in specific profiles?


pseudocode:



@Scheduled(cron = "${job.cron}")
@Profile("prod")
public void runJob() {

}


Is that possible?


Aucun commentaire:

Enregistrer un commentaire