Autowiring WxMpService - Hippoom/wechat-mp-starter GitHub Wiki
The starter provides a WxMpService
instance by default. You can provide a WxMpService
instance instead:
@Configuration
public class YourWeChatMpConfiguration {
@Bean
protected WxMpService wxMpService(WxMpConfigStorage wxMpConfigStorage) {
WxMpService wxMpService = new WxMpServiceImpl();
wxMpService.setWxMpConfigStorage(wxMpConfigStorage);
// omitted setters
return wxMpService;
}
}