Dynamic Cron Expression Management in Spring Applications

In Spring Boot applications, we can enable scheduling support using the @EnableScheduling annotation and create scheduled tasks with the @Scheduled annotation. The @Scheduled annotation supports three configuration methods for execution timing: cron(expression): Executes based on a Cron expression. fixedDelay(period): Executes at fixed interva ...

Posted on Fri, 26 Jun 2026 16:11:50 +0000 by sword

Dynamically Modifying @FeignClient Path at Runtime Using BeanFactoryPostProcessor

This solution covers both Spring Boot 2.x and 3.x implementations. Problem Description A common requirement arises where each API interface carries an interfacePath defined in a custom annotation on the interface itself. For instance: @FeignClient(value = "x-module") public interface XXXService extends XApi { } @XXXMapping("/mem ...

Posted on Wed, 13 May 2026 10:14:33 +0000 by AlanG