FTP上传、下载实现,FTP级联创建目录实现
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package com.fjy.spring.properties;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@@ -9,18 +8,16 @@ import org.springframework.stereotype.Component;
|
||||
* @author F嘉阳
|
||||
* @date 2018-05-07 19:52
|
||||
*/
|
||||
@Component
|
||||
@ConfigurationProperties(prefix = "ftp")
|
||||
@Data
|
||||
public class FtpProperties {
|
||||
//服务器地址名称
|
||||
private String server;
|
||||
private String server = "192.168.79.138";
|
||||
//端口号
|
||||
private int port;
|
||||
private int port = 21;
|
||||
//用户名称
|
||||
private String username;
|
||||
private String username = "cms";
|
||||
//密码
|
||||
private String password;
|
||||
private String password = "imis2";
|
||||
//工作目录
|
||||
private String location;
|
||||
private String location = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user