Spring Schedule expression configure externally -


i use spring schedule in application. configure cron expression externally. 1 @ bottom not work. has idee how this?

@enableconfigurationproperties @configurationproperties(locations = "classpath:application.properties", ignoreunknownfields = true, prefix = "myproject.prefix") public class myclass{  @scheduled(cron = "${myproperty}") public void mymethod() { 

have activated scheduling in configuration?

@configuration @enablescheduling public class appconfig {      [...]  } 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -