I always thought that @Scheduled works by proxying the whole bean, same way the @Async, @Transactional, etc does.
So I was surprised that the following works like a charm:
@Component
public static class Bean {
@Scheduled(fixedRate = 1000)
private void scheduled() {
System.out.println("Yo");
}
}
Did they change something or it's how it was from the very beginning? Thanks.