Commit c9f96191 by 张付兵

调整ftp连接的模式,统一使用被动模式

parent 541d66ab
......@@ -47,6 +47,7 @@ public class FtpUtil {
ftpClient.setDefaultPort(port);
ftpClient.setDataTimeout(DEFAULT_TIMEOUT);
ftpClient.setControlEncoding(FTP_ENCODE);
ftpClient.enterLocalPassiveMode();
boolean isConnect = ftpClient.login(userName,passWord);
if(!isConnect) {
logger.error("Connection the FtpServer Is Failed!");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment