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())) {