测试微信登录
This commit is contained in:
+8
@@ -4,17 +4,25 @@ import lombok.extern.slf4j.Slf4j;
|
||||
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.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
|
||||
@Configuration
|
||||
@Slf4j
|
||||
public class WxCpConfigure {
|
||||
|
||||
@Value("${corpId}")
|
||||
private String corpId;
|
||||
private String farmAppid;
|
||||
private String farmSecret;
|
||||
|
||||
@Bean
|
||||
@Scope("singleton")
|
||||
public WxCpService wxCpService(){
|
||||
|
||||
log.info("333:{}",corpId);
|
||||
WxCpDefaultConfigImpl config = new WxCpDefaultConfigImpl();
|
||||
|
||||
config.setCorpId("wwb9f9734e8e124761");
|
||||
|
||||
Reference in New Issue
Block a user