Prevent duplication in Repeating Annotations
问题 Repeating Annotations as @Scheduled allow multiple annotations But it also allows duplicated values in different annotation which can cause unexpected results Simple example using Scheduled with duplicated fixedRate values: private static final long TIME = 1000 * 60 * 1L; // 1 minute private static final long TIME2 = 1000 * 60 * 1L; // 1 minute @Scheduled(fixedRate = TIME) @Scheduled(fixedRate = TIME2) public synchronized void refresh() { It will execute twice per minute the schedule task