第2章 微信开发之微信项目

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class WxGzh1Config extends WxConfig {
          
   

	 @Value("#{gzh1WxProperties.wx_token}")
	  private String token;

	  @Value("#{gzh1WxProperties.wx_appid}")
	  private String appid;

	  @Value("#{gzh1WxProperties.wx_appsecret}")
	  private String appsecret;

	  @Value("#{gzh1WxProperties.wx_aeskey}")
	  private String aesKey;

	  @Override
	  public String getToken() {
          
   
	    return this.token;
	  }

	  @Override
	  public String getAppid() {
          
   
	    return this.appid;
	  }

	  @Override
	  public String getAppsecret() {
          
   
	    return this.appsecret;
	  }

	  @Override
	  public String getAesKey() {
          
   
	    return this.aesKey;
	  }

	  @Override
	  public WxAccountEnum getWxAccountEnum() {
          
   
	    return WxAccountEnum.GZH1;
	  }
}
经验分享 程序员 微信小程序 职场和发展