• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java WxMpInMemoryConfigStorage类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage的典型用法代码示例。如果您正苦于以下问题:Java WxMpInMemoryConfigStorage类的具体用法?Java WxMpInMemoryConfigStorage怎么用?Java WxMpInMemoryConfigStorage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



WxMpInMemoryConfigStorage类属于me.chanjar.weixin.mp.api包,在下文中一共展示了WxMpInMemoryConfigStorage类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: wxMpConfigStorage

import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage; //导入依赖的package包/类
@Bean
public WxMpConfigStorage wxMpConfigStorage() {
    WxMpInMemoryConfigStorage wxMpInMemoryConfigStorage = new WxMpInMemoryConfigStorage();
    wxMpInMemoryConfigStorage.setAppId(wechatAccountConfig.getMpAppId());
    wxMpInMemoryConfigStorage.setSecret(wechatAccountConfig.getMpAppSecret());
    return wxMpInMemoryConfigStorage;
}
 
开发者ID:ldlood,项目名称:SpringBoot_Wechat_Sell,代码行数:8,代码来源:WechatMpConfig.java


示例2: wxOpenConfigStorage

import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage; //导入依赖的package包/类
@Bean
public WxMpConfigStorage wxOpenConfigStorage() {
    WxMpInMemoryConfigStorage wxMpInMemoryConfigStorage = new WxMpInMemoryConfigStorage();
    wxMpInMemoryConfigStorage.setAppId(wechatAccountConfig.getOpenAppId());
    wxMpInMemoryConfigStorage.setSecret(wechatAccountConfig.getOpenAppSecret());
    return wxMpInMemoryConfigStorage;
}
 
开发者ID:ldlood,项目名称:SpringBoot_Wechat_Sell,代码行数:8,代码来源:WechatOpenConfig.java


示例3: wxMpConfigStorage

import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage; //导入依赖的package包/类
/**
 * 微信公众号配置
 *
 * @return
 */
private static WxMpConfigStorage wxMpConfigStorage() {
    WxMpInMemoryConfigStorage configStorage = new WxMpInMemoryConfigStorage();
    configStorage.setAppId(Init.configer.getWechatAppId());
    configStorage.setSecret(Init.configer.getWechatAppSecret());
    configStorage.setToken(Init.configer.getWechatToken());
    configStorage.setAesKey(Init.configer.getWechatAesKey());
    return configStorage;
}
 
开发者ID:rememberber,项目名称:WePush,代码行数:14,代码来源:PushManage.java


示例4: wxMpInMemoryConfigStorage

import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean
public WxMpInMemoryConfigStorage wxMpInMemoryConfigStorage() {
	WxMpInMemoryConfigStorage configStorage = new WxMpInMemoryConfigStorage();
	configStorage.setAppId(properties.getAppId());
	configStorage.setSecret(properties.getSecret());
	configStorage.setToken(properties.getToken());
	configStorage.setAesKey(properties.getAesKey());
	configStorage.setPartnerId(properties.getPartnerId());
	configStorage.setPartnerKey(properties.getPartnerKey());
	
	return configStorage;
}
 
开发者ID:jihao,项目名称:weixin-server-demo,代码行数:14,代码来源:WechatMpAutoConfiguration.java


示例5: init

import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage; //导入依赖的package包/类
@PostConstruct
public void init() {
	WxMpInMemoryConfigStorage config = new WxMpInMemoryConfigStorage();
	config.setAppId(appId);// 设置微信公众号的appid
	config.setSecret(secret);// 设置微信公众号的app corpSecret

	config.setToken(token);// 设置微信公众号的token
	config.setAesKey(aesKey);// 设置消息加解密密钥

	this.mpService = new WxMpServiceImpl();
	mpService.setWxMpConfigStorage(config);
}
 
开发者ID:tanhaichao,项目名称:leopard,代码行数:13,代码来源:WeixinAccountClientImpl.java


示例6: WeixinController

import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage; //导入依赖的package包/类
@Autowired
public WeixinController(IArticleService articleService, IConfigService configService) {
    this.articleService = articleService;

    WxMpInMemoryConfigStorage config = new WxMpInMemoryConfigStorage();
    config.setAppId(configService.getWeixinId());
    config.setSecret(configService.getWeixinSecret());
    config.setToken(configService.getWeixinToken());
    config.setAesKey(configService.getWeixinKey());

    WxMpService wxService = new WxMpServiceImpl();
    wxService.setWxMpConfigStorage(config);
}
 
开发者ID:lixiaocong,项目名称:lxcCMS,代码行数:14,代码来源:WeixinController.java


示例7: wxMpInMemoryConfigStorage

import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage; //导入依赖的package包/类
@Bean
public WxMpInMemoryConfigStorage wxMpInMemoryConfigStorage(WxOauth info) {
    WxMpInMemoryConfigStorage config = new WxMpInMemoryConfigStorage();
    config.setAppId(info.getAppId()); // 设置微信公众号的appid
    config.setSecret(info.getSecret()); // 设置微信公众号的app corpSecret
    config.setToken(info.getToken()); // 设置微信公众号的token
    config.setAesKey(info.getAesKey()); // 设置微信公众号的EncodingAESKey
    return config;
}
 
开发者ID:cyzaoj,项目名称:mywx,代码行数:10,代码来源:WxConfiguration.java


示例8: createMpService

import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage; //导入依赖的package包/类
private WxMpService createMpService(String id) {
    WxMpInMemoryConfigStorage config = new WxMpInMemoryConfigStorage();
    config.setAppId(_conf.getConf(id, WxPropsConf.P_appId));
    config.setSecret(_conf.getConf(id, WxPropsConf.P_secret));
    // config.setSSLContext(context);

    WxMpService mp = new WxMpServiceImpl();
    mp.setWxMpConfigStorage(config);
    return mp;
}
 
开发者ID:dzh,项目名称:jframe,代码行数:11,代码来源:WeixinServiceImpl.java


示例9: wxMpService

import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage; //导入依赖的package包/类
@Bean
public WxMpService wxMpService(WxMpInMemoryConfigStorage wxMpInMemoryConfigStorage) {
    WxMpService wxService = new WxMpServiceImpl();
    wxService.setWxMpConfigStorage(wxMpInMemoryConfigStorage);
    return wxService;
}
 
开发者ID:cyzaoj,项目名称:mywx,代码行数:7,代码来源:WxConfiguration.java



注:本文中的me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ImageTransfer类代码示例发布时间:2022-05-22
下一篇:
Java WriterConfig类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap