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方法就可以了