WxOpenConfig.java 1.2 KB
package org.theyeasy.weixin.model;

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

/**
 * 
 * @author Binary Wang
 * 
 */
@Configuration
public class WxOpenConfig {
	@Value("#{wxProperties.wx_open_token}")
	private String token;

	@Value("#{wxProperties.wx_open_appid}")
	private String appId;

	@Value("#{wxProperties.wx_oepn_appsecret}")
	private String appSecret;

	@Value("#{wxProperties.wx_open_aeskey}")
	private String aesKey;

	@Value("#{wxProperties.wx_open_redirect_uri}")
	private String redirectUri;
	
	@Value("#{wxProperties.wx_open_verify_ticket}")
	private String verifyTicket;

	
	public String getVerifyTicket() {
		return verifyTicket;
	}

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

	public String getAppId() {
		return appId;
	}

	public String getAppSecret() {
		return appSecret;
	}

	public String getRedirectUri() {
		return redirectUri;
	}

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

	@Override
	public String toString() {
		return "WxOpenConfig [token=" + token + ", appId=" + appId
				+ ", appSecret=" + appSecret + ", aesKey=" + aesKey
				+ ", redirectUri=" + redirectUri + ", verifyTicket="
				+ verifyTicket + "]";
	}

	
	

}