BAOLH
2025-09-22 61803858622afc5c25cb44a45b9c6d68a2882148
企微通信redis锁问题修改(补充)
1 files added
25 ■■■■■ changed files
eladmin-master/eladmin-system/src/main/java/me/zhengjie/config/WxCpConfig.java 25 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/config/WxCpConfig.java
New file
@@ -0,0 +1,25 @@
package me.zhengjie.config;
import me.chanjar.weixin.cp.api.WxCpService;
import me.chanjar.weixin.cp.api.impl.WxCpServiceImpl;
import me.chanjar.weixin.cp.config.impl.WxCpDefaultConfigImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
 * @author baoLh
 * @date 2025-09-22
 */
@Configuration
public class WxCpConfig {
    @Bean
    public WxCpService wxCpService() {
        WxCpDefaultConfigImpl configStorage = new WxCpDefaultConfigImpl();
        WxCpService wxCpService = new WxCpServiceImpl();
        wxCpService.setWxCpConfigStorage(configStorage);
        return wxCpService;
    }
}