|
|
@ -2,7 +2,6 @@ package com.zc.business.controller; |
|
|
|
|
|
|
|
import com.ruoyi.common.config.RuoYiConfig; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.core.env.Environment; |
|
|
|
import org.springframework.scheduling.annotation.Scheduled; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
@ -20,7 +19,7 @@ import java.util.Date; |
|
|
|
@Component |
|
|
|
@Slf4j |
|
|
|
public class DcMYSQLJob { |
|
|
|
private final Environment environment; |
|
|
|
//private final Environment environment;
|
|
|
|
|
|
|
|
private static final String IP = "10.0.81.202"; |
|
|
|
|
|
|
@ -30,9 +29,9 @@ public class DcMYSQLJob { |
|
|
|
|
|
|
|
private static final String PASSWORD = "mysql123!@#"; |
|
|
|
|
|
|
|
public DcMYSQLJob(Environment environment) { |
|
|
|
this.environment = environment; |
|
|
|
} |
|
|
|
//public DcMYSQLJob(Environment environment) {
|
|
|
|
// this.environment = environment;
|
|
|
|
//}
|
|
|
|
|
|
|
|
@Scheduled(cron = "0 0 22 * * ?") |
|
|
|
//@Scheduled(cron = "0 10 * * * ?")
|
|
|
|