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
Post a Comment