Skip to content

wx-java-mp-multi-spring-boot-starter 如何开启 StableAccessToken ? #3259

Closed
@qichhhhh

Description

@qichhhhh

单公众号的 wx-java-mp-spring-boot-starter 可以通过自己编写 WxMpConfigStorage 的实现类,重写 isStableAccessToken() return true; 从而实现获取 StableAccessToken,但是多公众号的 wx-java-mp-multi-spring-boot-starter 里的默认配置类是 WxMpInMemoryConfiguration.class ,里面的 protected WxMpDefaultConfigImpl wxMpConfigStorage(WxMpMultiProperties wxCpMultiProperties) 方法没有 @ConditionalOnMissingBean(WxMpConfigStorage.class),不知道该如何把自己的实现类注入进去,我应该怎么给 multi-starter 里的每个公众号启用 StableAccessToken ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions