diff --git a/pom.xml b/pom.xml index c02d7cc..da02cc8 100644 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ 基于 WxJava 和 Spring Boot 实现的微信公众号后端开发演示项目 - 3.4.0 + 3.5.0 1.8 1.8 diff --git a/src/main/java/com/github/binarywang/demo/wx/mp/config/WxMpConfiguration.java b/src/main/java/com/github/binarywang/demo/wx/mp/config/WxMpConfiguration.java index 10a01c8..0e7d31d 100644 --- a/src/main/java/com/github/binarywang/demo/wx/mp/config/WxMpConfiguration.java +++ b/src/main/java/com/github/binarywang/demo/wx/mp/config/WxMpConfiguration.java @@ -2,11 +2,10 @@ import com.github.binarywang.demo.wx.mp.handler.*; import lombok.AllArgsConstructor; -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.constant.WxMpEventConstants; +import me.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -56,13 +55,13 @@ public WxMpService wxMpService() { WxMpService service = new WxMpServiceImpl(); service.setMultiConfigStorages(configs .stream().map(a -> { - WxMpInMemoryConfigStorage configStorage = new WxMpInMemoryConfigStorage(); + WxMpDefaultConfigImpl configStorage = new WxMpDefaultConfigImpl(); configStorage.setAppId(a.getAppId()); configStorage.setSecret(a.getSecret()); configStorage.setToken(a.getToken()); configStorage.setAesKey(a.getAesKey()); return configStorage; - }).collect(Collectors.toMap(WxMpInMemoryConfigStorage::getAppId, a -> a, (o, n) -> o))); + }).collect(Collectors.toMap(WxMpDefaultConfigImpl::getAppId, a -> a, (o, n) -> o))); return service; }