配置文件提交。

This commit is contained in:
Renpc-kilig 2021-01-04 14:34:39 +08:00
parent 128feefe61
commit fb6db0c1c0
2 changed files with 80 additions and 16 deletions

View File

@ -21,22 +21,7 @@ public class PartyBuildingProperties {
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;
}
private String populationUrl;
public Integer getPort() {
return port;
@ -61,4 +46,28 @@ public class PartyBuildingProperties {
public void setTitle(String title) {
this.title = title;
}
public String getServicecityUrl() {
return servicecityUrl == null ? "" : servicecityUrl;
}
public void setServicecityUrl(String servicecityUrl) {
this.servicecityUrl = servicecityUrl;
}
public String getLogoUrl() {
return logoUrl == null ? "" : logoUrl;
}
public void setLogoUrl(String logoUrl) {
this.logoUrl = logoUrl;
}
public String getPopulationUrl() {
return populationUrl == null ? "" : populationUrl;
}
public void setPopulationUrl(String populationUrl) {
this.populationUrl = populationUrl;
}
}

View File

@ -0,0 +1,55 @@
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: ScoreProperties
* @Description: 系统配置
* @Author: renpc
* @Date: 2020/12/21 15:53 下午
* @Version: 1.0
**/
@Component
@ConfigurationProperties(prefix = "score")
public class ScoreProperties {
private Integer bossGrossscore;
private Integer personGrossscore;
private Integer meetingGrossscore;
private double bossEveryone;
public Integer getBossGrossscore() {
return bossGrossscore;
}
public void setBossGrossscore(Integer bossGrossscore) {
this.bossGrossscore = bossGrossscore;
}
public Integer getPersonGrossscore() {
return personGrossscore;
}
public void setPersonGrossscore(Integer personGrossscore) {
this.personGrossscore = personGrossscore;
}
public Integer getMeetingGrossscore() {
return meetingGrossscore;
}
public void setMeetingGrossscore(Integer meetingGrossscore) {
this.meetingGrossscore = meetingGrossscore;
}
public double getBossEveryone() {
return bossEveryone;
}
public void setBossEveryone(double bossEveryone) {
this.bossEveryone = bossEveryone;
}
}