|
|
@@ -35,7 +35,7 @@ public class RemoveMattersTask { |
|
|
|
/** |
|
|
|
* 每天 |
|
|
|
*/ |
|
|
|
@Scheduled(cron = "0 0 10 * * ?") |
|
|
|
@Scheduled(cron = "0 50 14 * * ?") |
|
|
|
public void doTask() throws UnknownHostException { |
|
|
|
if (!HOST.equals(InetAddress.getLocalHost().getHostName())) { |
|
|
|
log.info("定时器没开启或者host不对! {}:{}", |
|
|
|