update md
This commit is contained in:
parent
ad9f91bbd3
commit
c3d2465256
@ -94,6 +94,7 @@ weixin.properties说明
|
|||||||
> 针对`token`存储有两种方案,`File存储`/`Redis存储`,当然也可自己实现`TokenHolder`,默认使用文件(xml)的方式保存token,如果环境中支持`redis`,建议使用`RedisTokenHolder`.
|
> 针对`token`存储有两种方案,`File存储`/`Redis存储`,当然也可自己实现`TokenHolder`,默认使用文件(xml)的方式保存token,如果环境中支持`redis`,建议使用`RedisTokenHolder`.
|
||||||
>
|
>
|
||||||
> WeixinProxy weixinProxy = new WeixinProxy(new RedisTokenHolder());
|
> WeixinProxy weixinProxy = new WeixinProxy(new RedisTokenHolder());
|
||||||
|
|
||||||
> // weixinProxy = new WeixinProxy(new RedisTokenHolder(weixinAccount));
|
> // weixinProxy = new WeixinProxy(new RedisTokenHolder(weixinAccount));
|
||||||
|
|
||||||
[更新LOG](./CHANGE.md)
|
[更新LOG](./CHANGE.md)
|
||||||
|
|||||||
@ -61,6 +61,7 @@ weixin.properties说明
|
|||||||
> 针对`token`存储有两种方案,`File存储`/`Redis存储`,当然也可自己实现`TokenHolder`,默认使用文件(xml)的方式保存token,如果环境中支持`redis`,建议使用`RedisTokenHolder`.
|
> 针对`token`存储有两种方案,`File存储`/`Redis存储`,当然也可自己实现`TokenHolder`,默认使用文件(xml)的方式保存token,如果环境中支持`redis`,建议使用`RedisTokenHolder`.
|
||||||
>
|
>
|
||||||
> WeixinProxy weixinProxy = new WeixinProxy(new RedisTokenHolder());
|
> WeixinProxy weixinProxy = new WeixinProxy(new RedisTokenHolder());
|
||||||
|
|
||||||
> // weixinProxy = new WeixinProxy(new RedisTokenHolder(weixinAccount));
|
> // weixinProxy = new WeixinProxy(new RedisTokenHolder(weixinAccount));
|
||||||
|
|
||||||
[更新LOG](./CHANGE.md)
|
[更新LOG](./CHANGE.md)
|
||||||
|
|||||||
@ -26,7 +26,7 @@ import com.foxinmy.weixin4j.startup.WeixinServerBootstrap;
|
|||||||
public class MessageServerStartup {
|
public class MessageServerStartup {
|
||||||
|
|
||||||
final String appid = "appid";
|
final String appid = "appid";
|
||||||
final String token = "开发者token";
|
final String token = "carsonliu13450438112";
|
||||||
final String aesKey = "AES密钥";
|
final String aesKey = "AES密钥";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -109,6 +109,6 @@ public class MessageServerStartup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) throws WeixinException {
|
public static void main(String[] args) throws WeixinException {
|
||||||
new MessageServerStartup().test5();
|
new MessageServerStartup().test1();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user