FTP inputstream下载测试成功
This commit is contained in:
26
src/main/java/com/fjy/spring/properties/FtpProperties.java
Normal file
26
src/main/java/com/fjy/spring/properties/FtpProperties.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package com.fjy.spring.properties;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
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 int port;
|
||||
//用户名称
|
||||
private String username;
|
||||
//密码
|
||||
private String password;
|
||||
//工作目录
|
||||
private String location;
|
||||
}
|
||||
Reference in New Issue
Block a user