maxConnections and maxConnectionsPerHost
This commit is contained in:
+10
-19
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
@@ -15,7 +16,7 @@
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>io.netty</groupId>
|
||||
<artifactId>netty-all</artifactId>
|
||||
<artifactId>netty-codec-http</artifactId>
|
||||
<version>4.1.42.Final</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@@ -33,26 +34,10 @@
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpcore</artifactId>
|
||||
<version>4.2.5</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpclient</artifactId>
|
||||
<version>4.3.6</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>commons-codec</groupId>
|
||||
<artifactId>commons-codec</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpcore</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
<version>4.2</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
@@ -60,6 +45,12 @@
|
||||
<artifactId>spring-context</artifactId>
|
||||
<version>4.2.0.RELEASE</version>
|
||||
<optional>true</optional>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user