59 lines
1.1 KiB
Java
59 lines
1.1 KiB
Java
package com.zeekling.solo.weixin.conf;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
import javax.validation.Valid;
|
|
|
|
/**
|
|
* @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;
|
|
}
|
|
}
|