暂提
This commit is contained in:
parent
48c640a34a
commit
382f8b17d1
@ -14,7 +14,7 @@ import org.springframework.core.env.Environment;
|
||||
* @date 2023/5/30 11:01
|
||||
*/
|
||||
@Slf4j
|
||||
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
|
||||
@SpringBootApplication(scanBasePackages = "cn.axzo.msg.center",exclude = DataSourceAutoConfiguration.class)
|
||||
public class MsgCenterApplication {
|
||||
public static void main(String[] args) {
|
||||
ConfigurableApplicationContext run = SpringApplication.run(MsgCenterApplication.class, args);
|
||||
|
||||
@ -7,6 +7,8 @@ import lombok.RequiredArgsConstructor;
|
||||
import me.chanjar.weixin.common.error.WxErrorException;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 微信小程序消息处理器
|
||||
*
|
||||
@ -18,7 +20,8 @@ import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class WxMiniMessageHandler {
|
||||
private final WxMaProcessor wxProcessor;
|
||||
@Resource
|
||||
private WxMaProcessor wxProcessor;
|
||||
|
||||
|
||||
public WxMiniMessageHandler switchConfig(String appid, String secret) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user