memcache引用有误
This commit is contained in:
parent
57a6c6d6e3
commit
eb54ea9079
@ -46,9 +46,9 @@
|
|||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.meetup</groupId>
|
<groupId>com.whalin</groupId>
|
||||||
<artifactId>memcached-client</artifactId>
|
<artifactId>Memcached-Java-Client</artifactId>
|
||||||
<version>2.6.6</version>
|
<version>3.0.2</version>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@ -53,12 +53,7 @@ public class WeixinException extends Exception {
|
|||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
StringBuilder buf = new StringBuilder();
|
StringBuilder buf = new StringBuilder();
|
||||||
if (StringUtil.isNotBlank(code)) {
|
if (StringUtil.isNotBlank(code)) {
|
||||||
buf.append(code);
|
buf.append(code).append(" >> ").append(desc);
|
||||||
}
|
|
||||||
if (StringUtil.isNotBlank(desc)) {
|
|
||||||
buf.append(" >> ").append(desc);
|
|
||||||
}
|
|
||||||
if (buf.length() > 0) {
|
|
||||||
String text = getErrorText();
|
String text = getErrorText();
|
||||||
if (StringUtil.isNotBlank(text)) {
|
if (StringUtil.isNotBlank(text)) {
|
||||||
buf.append(" >> ").append(text);
|
buf.append(" >> ").append(text);
|
||||||
|
|||||||
@ -4,14 +4,14 @@ import java.util.ArrayList;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.danga.MemCached.MemCachedClient;
|
|
||||||
import com.danga.MemCached.SockIOPool;
|
|
||||||
import com.foxinmy.weixin4j.exception.WeixinException;
|
import com.foxinmy.weixin4j.exception.WeixinException;
|
||||||
import com.foxinmy.weixin4j.model.Token;
|
import com.foxinmy.weixin4j.model.Token;
|
||||||
|
import com.whalin.MemCached.MemCachedClient;
|
||||||
|
import com.whalin.MemCached.SockIOPool;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用Memcache保存Token信息(推荐使用)
|
* 用Memcache保存Token信息(推荐使用)
|
||||||
*
|
*
|
||||||
* @className MemcacheTokenStorager
|
* @className MemcacheTokenStorager
|
||||||
* @author jinyu(foxinmy@gmail.com)
|
* @author jinyu(foxinmy@gmail.com)
|
||||||
* @date 2016年5月11日
|
* @date 2016年5月11日
|
||||||
@ -63,7 +63,7 @@ public class MemcacheTokenStorager implements TokenStorager {
|
|||||||
public static int minConn = 5;
|
public static int minConn = 5;
|
||||||
public static int initConn = 5;
|
public static int initConn = 5;
|
||||||
public static int maxConn = 100;
|
public static int maxConn = 100;
|
||||||
public static long maxIdle = 300000L;
|
public static int maxIdle = 300000;
|
||||||
public static long maxBusyTime = 30000L;
|
public static long maxBusyTime = 30000L;
|
||||||
public static int socketTO = 3000;
|
public static int socketTO = 3000;
|
||||||
public static int socketConnectTO = 3000;
|
public static int socketConnectTO = 3000;
|
||||||
@ -105,7 +105,7 @@ public class MemcacheTokenStorager implements TokenStorager {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {host:11211,1}
|
* {host:11211,1}
|
||||||
*
|
*
|
||||||
* @param host
|
* @param host
|
||||||
* 主机
|
* 主机
|
||||||
*/
|
*/
|
||||||
@ -115,7 +115,7 @@ public class MemcacheTokenStorager implements TokenStorager {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {host:port,1}
|
* {host:port,1}
|
||||||
*
|
*
|
||||||
* @param host
|
* @param host
|
||||||
* 主机
|
* 主机
|
||||||
* @param port
|
* @param port
|
||||||
@ -127,7 +127,7 @@ public class MemcacheTokenStorager implements TokenStorager {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {host:port,weight}
|
* {host:port,weight}
|
||||||
*
|
*
|
||||||
* @param host
|
* @param host
|
||||||
* 主机
|
* 主机
|
||||||
* @param port
|
* @param port
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user