李林
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
package com.chinaztt.mes.common.ftp;
 
import lombok.AllArgsConstructor;
import org.apache.commons.pool.impl.GenericObjectPool;
import org.springframework.stereotype.Component;
 
import javax.annotation.PostConstruct;
 
/**
 * @Author: zhangxy
 * @Date: 2019/12/10 9:03
 */
@Component
@AllArgsConstructor
public class Global {
 
    private FtpClientConfigure ftpClientConfigure;
 
    public static FtpPool pool = null;
 
    @PostConstruct
    public void init() {
        pool = new FtpPool(new GenericObjectPool.Config(), ftpClientConfigure);
    }
 
}