1.apache ftpserver1.0.6设置最大连接数和最大登录数问题
apache ftpserver1.0.6设置最大连接数和最大登录数问题
listenerFactory.setPort(Integer.parseInt(ftpport));
ftpServerFactory.addListener("default",码运酷信源码全称 listenerFactory
.createListener());
ConnectionConfigFactory connectionConfigFactory = new ConnectionConfigFactory();
connectionConfigFactory.setMaxLogins();
ConnectionConfig connectionConfig = connectionConfigFactory.createConnectionConfig();
ftpServerFactory.setConnectionConfig(connectionConfig);
调用createConnectionConfig方法就可以了