|
@@ -4,10 +4,10 @@ package com.hcloud.microserver.bank.config;
|
|
|
import com.google.common.collect.Maps;
|
|
|
import com.hcloud.microserver.commoncore.handler.*;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage;
|
|
|
import me.chanjar.weixin.mp.api.WxMpMessageRouter;
|
|
|
import me.chanjar.weixin.mp.api.WxMpService;
|
|
|
import me.chanjar.weixin.mp.api.impl.WxMpServiceImpl;
|
|
|
+import me.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl;
|
|
|
import me.chanjar.weixin.mp.constant.WxMpEventConstants;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
@@ -68,7 +68,7 @@ public class WxMpConfiguration {
|
|
|
|
|
|
@Bean
|
|
|
public Object services() {
|
|
|
- WxMpInMemoryConfigStorage configStorage = new WxMpInMemoryConfigStorage();
|
|
|
+ WxMpDefaultConfigImpl configStorage = new WxMpDefaultConfigImpl();
|
|
|
configStorage.setAppId(properties.getAppId());
|
|
|
configStorage.setSecret(properties.getSecret());
|
|
|
configStorage.setToken(properties.getToken());
|