BAOLH
2025-09-22 dac503c1ce37ca44c8a69dabfd432dea7d3d794e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
    }
}