maxConnections and maxConnectionsPerHost

This commit is contained in:
jinyu
2020-07-24 12:55:37 +08:00
parent 4bd6d6ded7
commit 7fd6db2758
9 changed files with 55 additions and 35 deletions
@@ -61,7 +61,7 @@ public final class ClassUtil {
}
}
if (clazz == null || clazz.isEmpty()) {
clazz = new ArrayList<>();
clazz = new ArrayList<Class<?>>();
try {
for (URL url : ((URLClassLoader) ClassLoader.getSystemClassLoader()).getURLs()) {
File file = new File(url.getFile());
@@ -27,7 +27,7 @@ import com.foxinmy.weixin4j.util.ServerToolkits;
*/
public class MessagePush {
private final String server = "https://localhost:30000";
private final String server = "http://localhost:30000";
private final HttpClient httpClient;
private final HttpPost httpPost;
private final HttpGet httpGet;