Schedule a task with Cron which allows dynamic update
问题 I use sprint boot 1.3, spring 4.2 In this class @Service public class PaymentServiceImpl implements PaymentService { .... @Transactional @Override public void processPayment() { List<Payment> payments = paymentRepository.findDuePayment(); processCreditCardPayment(payments); } } I would like to call processPayment every x moment. This x moment is set in a database. The user can modify it. So i think i can't use anotation. I started to this this @EntityScan(basePackageClasses = {MyApp.class,