package com.cm.bigdata.config.properties; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; /** * When you feel like quitting. Think about why you started * 当你想要放弃的时候,想想当初你为何开始 * * @ClassName: VolunteerProperties * @Description: 系统配置 * @Author: renpc * @Date: 2020/05/21 15:53 下午 * @Version: 1.0 **/ @Component @ConfigurationProperties(prefix = "server-other") public class PartyBuildingProperties { private Integer port; private String partyUrl; private String title; private String servicecityUrl; private String logoUrl; public String getLogoUrl() { return logoUrl == null ? "" : logoUrl; } public void setLogoUrl(String logoUrl) { this.logoUrl = logoUrl; } public String getServicecityUrl() { return servicecityUrl == null ? "" : servicecityUrl; } public void setServicecityUrl(String servicecityUrl) { this.servicecityUrl = servicecityUrl; } public Integer getPort() { return port; } public void setPort(Integer port) { this.port = port; } public String getPartyUrl() { return partyUrl == null ? "" : partyUrl; } public void setPartyUrl(String partyUrl) { this.partyUrl = partyUrl; } public String getTitle() { return title == null ? "" : title; } public void setTitle(String title) { this.title = title; } }