-
-
Notifications
You must be signed in to change notification settings - Fork 7
Simple startup task
Ahmad K. Bawaneh edited this page Nov 7, 2021
·
4 revisions
We can add a startup task to our application by implementing ClientStartupTask
and annotate the class with @StartupTask
, then we add our task logic in the execute method, there is nothing special here, such task will be executed during our application bootstrap :
@StartupTask
public class SampleTask implements ClientStartupTask {
@Override
public void execute() {
//do some initialization here
}
}