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;
|
}
|
}
|