智慧保安后台管理-外网项目备份
guoshilong
2023-11-30 711c855e134edc75faf03d96ec8b3dd0e269fb0a
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())) {