Wednesday, 9 January 2013

Spring scheduled annotation

 Spring has nice feature called scheduler. Just simply create class and annotate method with @Scheduled(...) annotation and it's all. You have scheduled task, that wil be executed based on your time expression. Example: