47 lines
1.1 KiB
Java
47 lines
1.1 KiB
Java
|
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;
|
|||
|
|
|||
|
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;
|
|||
|
}
|
|||
|
}
|