| | |
| | | |
| | | |
| | | import com.nq.service.IEchoServices; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.stereotype.Controller; |
| | | |
| | | /** |
| | | * 余额宝定时任务 |
| | | * */ |
| | | @Controller |
| | | @Slf4j |
| | | @Component |
| | | public class YEBTask { |
| | | |
| | | |
| | |
| | | /** |
| | | * 余额宝发放利息 |
| | | * */ |
| | | @Scheduled(cron = "0 0 0/1 * * ?") |
| | | @Scheduled(cron = "0 0/1 * * * ?") |
| | | public void sendYEBMoney(){ |
| | | log.info("基金定时任务-------开始"); |
| | | echoServices.sendMoney(); |
| | | log.info("基金定时任务-------结束"); |
| | | } |
| | | |
| | | } |