blog-weixin/src/main/java/com/zeekling/solo/wechat/conf/WeXinConfigure.java

57 lines
1.1 KiB
Java
Raw Normal View History

2020-03-19 13:45:56 +00:00
package com.zeekling.solo.wechat.conf;
2020-03-17 16:46:51 +00:00
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
* @author zeekling [lingzhaohui@zeekling.cn]
* @version 1.0
* @apiNote
* @since 2020-03-18
*/
@Component
public class WeXinConfigure {
private String appId;
private String secret;
private String token;
private String aesKey;
public String getAppId() {
return appId;
}
@Value("${wx.mp.appId}")
public void setAppId(String appId) {
this.appId = appId;
}
public String getSecret() {
return secret;
}
@Value("${wx.mp.secret}")
public void setSecret(String secret) {
this.secret = secret;
}
public String getToken() {
return token;
}
@Value("${wx.mp.token}")
public void setToken(String token) {
this.token = token;
}
public String getAesKey() {
return aesKey;
}
@Value("${wx.mp.aesKey}")
public void setAesKey(String aesKey) {
this.aesKey = aesKey;
}
}