李林
2023-10-07 658d4927d468c47208fd012d9128b09249c07eff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.chinaztt.mes.common.ftp;
 
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;
 
/**
 * @Author: zhangxy
 * @Date: 2019/12/10 8:46
 */
@RefreshScope
@Component
@Data
public class FtpClientConfigure {
    @Value("${ftp.host:}")
    private String host;
    @Value("${ftp.port:}")
    private String port;
    @Value("${ftp.username:}")
    private String username;
    @Value("${ftp.password:}")
    private String password;
    @Value("${ftp.passiveMode:}")
    private String passiveMode;
    @Value("${ftp.encoding:}")
    private String encoding;
    @Value("${ftp.connectTimeout:}")
    private String clientTimeout;
    @Value("${ftp.transferFileType:}")
    private String transferFileType;
}