public class ConfigurationPropertiesDemo {
@Component
@ConfigurationProperties(prefix = "iotsaas.config")
class IotSaasConfiguration {
private String appVersion;
private String tenantName;
private String tenantId;
private String platformName;
private String logo;
private String mobileWelcome;
private String pcWelcome;
@Override
public String toString() {
return "IotSaasConfiguration{" +
"appVersion='" + appVersion + '\'' +
", tenantName='" + tenantName + '\'' +
", tenantId='" + tenantId + '\'' +
", platformName='" + platformName + '\'' +
", logo='" + logo + '\'' +
", mobileWelcome='" + mobileWelcome + '\'' +
", pcWelcome='" + pcWelcome + '\'' +
'}';
}
public String getAppVersion() {
return appVersion;
}
public void setAppVersion(String appVersion) {
this.appVersion = appVersion;
}
public String getTenantName() {
return tenantName;
}
public void setTenantName(String tenantName) {
this.tenantName = tenantName;
}
public String getTenantId() {
return tenantId;
}
public void setTenantId(String tenantId) {
this.tenantId = tenantId;
}
public String getPlatformName() {
return platformName;
}
public void setPlatformName(String platformName) {
this.platformName = platformName;
}
public String getLogo() {
return logo;
}
public void setLogo(String logo) {
this.logo = logo;
}
public String getMobileWelcome() {
return mobileWelcome;
}
public void setMobileWelcome(String mobileWelcome) {
this.mobileWelcome = mobileWelcome;
}
public String getPcWelcome() {
return pcWelcome;
}
public void setPcWelcome(String pcWelcome) {
this.pcWelcome = pcWelcome;
}
}
}