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);
|
}
|
|
}
|