Execute method on startup in spring

Posted by Javi on Stack Overflow See other posts from Stack Overflow or by Javi
Published on 2010-03-08T13:16:28Z Indexed on 2010/03/08 13:21 UTC
Read the original article Hit count: 292

Filed under:
|

Hello,

Is there any Spring 3 feature to execute some methods when the application starts for the first time? I know that I can do the trick of setting a method with @Scheduled annotation and it executes just after the startup, but then it will execute periodically.

Thanks.

© Stack Overflow or respective owner

Related posts about spring

Related posts about startup