Two approaches for loading cron expressions from a database in Spring Boot are compared. The first uses a Spring bean (cronLoader) referenced via SpEL in @Scheduled, which is simple but only reads the value once at startup. The second uses SchedulingConfigurer to register a trigger task that re-reads the cron expression from

10m read timeFrom feeds.feedblitz.com
Post cover image
Table of contents
1. Overview2. Introduction to the Problem3. Preparing Data in a Database4. Using a cronLoader Bean5. Using Spring’s SchedulingConfigurer6. Conclusion

Sort: