@Service public class FtpUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private ConfigConstants |
configConstants |
private org.slf4j.Logger |
LOGGER |
| 构造器和说明 |
|---|
FtpUtils() |
@Autowired private ConfigConstants configConstants
private final org.slf4j.Logger LOGGER
public org.apache.commons.net.ftp.FTPClient connect(String host, int port, String username, String password, String controlEncoding) throws IOException
IOExceptionpublic void download(String ftpUrl, String localFilePath, String ftpUsername, String ftpPassword, String ftpControlEncoding) throws IOException
IOExceptionCopyright © 2019. All rights reserved.