Execution and configure the SCHEDULE program with Spring

xiaoxiao2021-03-06  122

Create a Timertask class extension class

Public class checkemailaddresses extends Timertask {

Private List EmailAddresses;

Public void setemailaddresses (List emaildresses) {

THIS.EMAILADDRESS = EmailAddresses;

}

Public void run () {

// Itereate over all email addresses and archive them

}

}

Create an execution class, configure the Spring file

test@springframework.org

foo@bar.com

john@doe.net

10000

50000

Ezerg Programming

转载请注明原文地址:https://www.9cbs.com/read-101833.html

New Post(0)