智慧保安后台管理-外网项目备份
guoshilong
2024-01-04 b431c00a3e736e27599cd34793c65369fdb7b8cd
src/main/java/org/springblade/modules/FTP/monitor.java
@@ -16,11 +16,10 @@
@Component
public class monitor {
   @Scheduled(cron = "*/30 * * * * ?")
//   @Scheduled(cron = "*/30 * * * * ?")
   public static boolean isFTPFileExist() {
      FTPClient ftp = new FTPClient();
      try {
         // 连接ftp服务器
@@ -31,7 +30,6 @@
         // 登陆
         ftp.login(ftpUserName, ftpPassword);
         // 检验登陆操作的返回码是否正确
         if (!FTPReply.isPositiveCompletion(ftp.getReplyCode())) {