智慧保安后台管理-外网项目备份
钟日健
2025-10-30 35be7e24498a3e1b143a213643a5d8d86bdc4e13
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())) {