package com.java110.app.properties;
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.context.annotation.PropertySource;
|
import org.springframework.stereotype.Component;
|
|
@Component
|
@ConfigurationProperties(prefix = "java110.auth.wechat")
|
@PropertySource("classpath:wechatAuth.properties")
|
public class WechatAuthProperties {
|
|
private String sessionHost;
|
private String appId;
|
private String secret;
|
private String grantType;
|
|
public String getSessionHost() {
|
return sessionHost;
|
}
|
|
public void setSessionHost(String sessionHost) {
|
this.sessionHost = sessionHost;
|
}
|
|
public String getAppId() {
|
return appId;
|
}
|
|
public void setAppId(String appId) {
|
this.appId = appId;
|
}
|
|
public String getSecret() {
|
return secret;
|
}
|
|
public void setSecret(String secret) {
|
this.secret = secret;
|
}
|
|
public String getGrantType() {
|
return grantType;
|
}
|
|
public void setGrantType(String grantType) {
|
this.grantType = grantType;
|
}
|
}
|