# ftp-spring-boot-starter **Repository Path**: zoomLee/ftp-spring-boot-starter ## Basic Information - **Project Name**: ftp-spring-boot-starter - **Description**: 基于hutool、commons-pool2,提供ftp连接池服务,支持ftp、sftp协议,封装FtpTemplate模板类,实现文件上传下载、文件查询、文件读取、文件删除等方法。 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2023-07-16 - **Last Updated**: 2023-07-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 使用方式 - **pom依赖** ``` cn.digitlink ftp-spring-boot-starter 0.0.1.RELEASE ``` - **配置文件** ``` ftp.type=sftp ftp.host=127.0.0.1 ftp.port=22 ftp.username=ftpuser ftp.password=123456 ftp.base-path=/ ``` - **测试用例** ``` @SpringBootTest(webEnvironment = WebEnvironment.NONE, classes = FtpConfig.class) class SpringdemoApplicationTests { @Resource private FtpTemplate ftpTemplate; @Test void contextLoads() { List fileList = ftpTemplate.getFileList("/", ".*"); System.out.println(fileList); } } ```