当前位置: 首页>>代码示例>>Java>>正文


Java WxMpInMemoryConfigStorage.setAppId方法代码示例

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


在下文中一共展示了WxMpInMemoryConfigStorage.setAppId方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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


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